]> granicus.if.org Git - python/commitdiff
getuid() returns real process id not effective (closes #22307)
authorBenjamin Peterson <benjamin@python.org>
Sun, 31 Aug 2014 01:04:15 +0000 (21:04 -0400)
committerBenjamin Peterson <benjamin@python.org>
Sun, 31 Aug 2014 01:04:15 +0000 (21:04 -0400)
Doc/library/os.rst

index bb751f4888aa6eab7424cad2a67517367ea2126c..0a59108b2c083b66aed928262217e4d7d18d52a5 100644 (file)
@@ -281,10 +281,10 @@ process and user.
 .. 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 variables
-   :envvar:`LOGNAME` or :envvar:`USERNAME` 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
+   variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user
+   is, or ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current
+   real user id.
 
    Availability: Unix, Windows.