Commit e63544f8 authored by Fred Drake's avatar Fred Drake

posix_getlogin(): Be more cautious about interpreting a NULL from

                   getlogin() -- it is not clear that a NULL is always
                   an error.
parent a30680b2
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment