diff options
author | Fred Drake <fdrake@acm.org> | 2000-12-06 21:45:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-12-06 21:45:33 (GMT) |
commit | e63544f872c4d1af8e76b42b32db79eef12c8902 (patch) | |
tree | 112d77c8571d50cf4cb138a1e37715d846116587 /Modules/posixmodule.c | |
parent | a30680b24035c972621c92394cb2b21cabbea6a5 (diff) | |
download | cpython-e63544f872c4d1af8e76b42b32db79eef12c8902.zip cpython-e63544f872c4d1af8e76b42b32db79eef12c8902.tar.gz cpython-e63544f872c4d1af8e76b42b32db79eef12c8902.tar.bz2 |
posix_getlogin(): Be more cautious about interpreting a NULL from
getlogin() -- it is not clear that a NULL is always
an error.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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_getlogin(PyObject *self, PyObject *args) posix_error(); else PyErr_SetString(PyExc_OSError, - "unexpected NULL from getlogin()"); + "unable to determine login name"); } else result = PyString_FromString(name); |