From e63544f872c4d1af8e76b42b32db79eef12c8902 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 6 Dec 2000 21:45:33 +0000 Subject: [PATCH] posix_getlogin(): Be more cautious about interpreting a NULL from getlogin() -- it is not clear that a NULL is always an error. --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.0