]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-127081: use `getlogin_r` if available (gh-132751) (#135098)
authorSam Gross <colesbury@gmail.com>
Tue, 3 Jun 2025 18:41:26 +0000 (14:41 -0400)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 18:41:26 +0000 (14:41 -0400)
commitb21d15fa95a6dc9858662077d9fef9b2c9a09c3d
tree436951579fa1249fd5830ef135e9b2aa4951c977
parentaa9eb5f757ceff461e6e996f12c89e5d9b583b01
[3.13] gh-127081: use `getlogin_r` if available (gh-132751) (#135098)

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