summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-06 21:45:33 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-06 21:45:33 (GMT)
commite63544f872c4d1af8e76b42b32db79eef12c8902 (patch)
tree112d77c8571d50cf4cb138a1e37715d846116587 /Modules/posixmodule.c
parenta30680b24035c972621c92394cb2b21cabbea6a5 (diff)
downloadcpython-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.c2
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);