]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-144023: Prevent `follow_symlinks` from being allowed with an fd of 0 (GH...
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Thu, 22 Jan 2026 15:52:49 +0000 (15:52 +0000)
committerGitHub <noreply@github.com>
Thu, 22 Jan 2026 15:52:49 +0000 (15:52 +0000)
commit837b88fd9fc5a33a770c343253b2c488f9b8979d
tree6d740cf1bb4862892dc502948642216d2c87b603
parentd4d37b26cb0881d88f429edf18ae404876cee1ce
[3.13] gh-144023: Prevent `follow_symlinks` from being allowed with an fd of 0 (GH-144022) (#144152)

[3.13] gh-144023: Prevent follow_symlinks from being allowed with an fd of 0 (GH-144022)

The check was (fd > 0), should be (fd >= 0).
(cherry picked from commit fa44efa0ef1972ac1e2f66996303154be11f605e)

Co-authored-by: AZero13 <gfunni234@gmail.com>
Lib/test/test_posix.py
Misc/NEWS.d/next/Library/2026-01-19-00-57-40.gh-issue-144023.29XUcp.rst [new file with mode: 0644]
Modules/posixmodule.c