[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.177,2.178

Fred L. Drake python-dev@python.org
Wed, 6 Dec 2000 13:45:36 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv7445

Modified Files:
	posixmodule.c 
Log Message:

posix_getlogin():  Be more cautious about interpreting a NULL from
                   getlogin() -- it is not clear that a NULL is always
                   an error.


Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.177
retrieving revision 2.178
diff -C2 -r2.177 -r2.178
*** posixmodule.c	2000/12/06 21:24:28	2.177
--- posixmodule.c	2000/12/06 21:45:33	2.178
***************
*** 1915,1919 ****
              else
                  PyErr_SetString(PyExc_OSError,
!                                 "unexpected NULL from getlogin()");
          }
          else
--- 1915,1919 ----
              else
                  PyErr_SetString(PyExc_OSError,
!                                 "unable to determine login name");
          }
          else