]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-127081: use `getlogin_r` if available (gh-132751) (gh-135097)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Jun 2025 18:41:47 +0000 (20:41 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 18:41:47 +0000 (14:41 -0400)
commitd8c2bfac1f1f758c8ff189b17fb8ef75c9019ea9
tree181229b4610f6be2e3d45d5075ae1d08cb89d8a8
parent81999f157f435bad189aac534911525569d74c3e
[3.14] gh-127081: use `getlogin_r` if available (gh-132751) (gh-135097)

The `getlogin` function is not thread-safe: replace with `getlogin_r` where
available.
(cherry picked from commit 1ffe913c2017b44804aca18befd45689df06c069)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
Misc/NEWS.d/next/Library/2025-04-21-01-03-15.gh-issue-127081.WXRliX.rst [new file with mode: 0644]
Modules/posixmodule.c
configure
configure.ac
pyconfig.h.in