From: Andrew M. Kuchling Date: Mon, 3 Feb 2003 15:36:26 +0000 (+0000) Subject: Bug #678077: Suggest alternative to os.getlogin() X-Git-Tag: v2.3c1~2079 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b37364fc8b6d776d63094ccf0ad004e8e43e6de;p=thirdparty%2FPython%2Fcpython.git Bug #678077: Suggest alternative to os.getlogin() --- diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index e7e1ac5d2d86..aa57217832bc 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -141,7 +141,9 @@ Availability: \UNIX. \begin{funcdesc}{getlogin}{} Return the name of the user logged in on the controlling terminal of the process. For most purposes, it is more useful to use the -environment variable \envvar{LOGNAME} to find out who the user is. +environment variable \envvar{LOGNAME} to find out who the user is, +or \code{pwd.getpwuid(os.getuid())[0]} to get the login name +of the currently effective user ID. Availability: \UNIX. \end{funcdesc}