[Python-checkins] cpython (2.7): getuid() returns real process id not effective (closes #22307)
benjamin.peterson
python-checkins at python.org
Sun Aug 31 03:06:10 CEST 2014
http://hg.python.org/cpython/rev/59f2edeb8443
changeset: 92274:59f2edeb8443
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Sat Aug 30 21:04:15 2014 -0400
summary:
getuid() returns real process id not effective (closes #22307)
files:
Doc/library/os.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -188,10 +188,10 @@
.. function:: 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, or
- ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently
- effective user id.
+ process. For most purposes, it is more useful to use the environment
+ variable :envvar:`LOGNAME` to find out who the user is, or
+ ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the process's real
+ user id.
Availability: Unix.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list