commit | e63544f872c4d1af8e76b42b32db79eef12c8902 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Wed Dec 06 21:45:33 2000 +0000 |
committer | Fred Drake <fdrake@acm.org> | Wed Dec 06 21:45:33 2000 +0000 |
tree | 112d77c8571d50cf4cb138a1e37715d846116587 | |
parent | a30680b24035c972621c92394cb2b21cabbea6a5 [diff] [blame] |
posix_getlogin(): Be more cautious about interpreting a NULL from getlogin() -- it is not clear that a NULL is always an error.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 2ddcebc..4a991f9 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -1914,7 +1914,7 @@ posix_error(); else PyErr_SetString(PyExc_OSError, - "unexpected NULL from getlogin()"); + "unable to determine login name"); } else result = PyString_FromString(name);