From: Fred Drake Date: Wed, 6 Dec 2000 21:45:33 +0000 (+0000) Subject: posix_getlogin(): Be more cautious about interpreting a NULL from X-Git-Tag: v2.1a1~659 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e63544f872c4d1af8e76b42b32db79eef12c8902;p=python 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 2ddcebc855..4a991f989d 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);