Skip to content

Commit e218bcb

Browse files
committed
getuid() returns real process id not effective (closes #22307)
1 parent 0cff49f commit e218bcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/os.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ process and user.
281281
.. function:: getlogin()
282282

283283
Return the name of the user logged in on the controlling terminal of the
284-
process. For most purposes, it is more useful to use the environment variables
285-
:envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, or
286-
``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently
287-
effective user id.
284+
process. For most purposes, it is more useful to use the environment
285+
variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user
286+
is, or ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current
287+
real user id.
288288

289289
Availability: Unix, Windows.
290290

0 commit comments

Comments
 (0)