]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-144023: Prevent follow_symlinks from being allowed with an fd of 0 (GH-144022)
authorAZero13 <gfunni234@gmail.com>
Tue, 20 Jan 2026 09:50:51 +0000 (04:50 -0500)
committerGitHub <noreply@github.com>
Tue, 20 Jan 2026 09:50:51 +0000 (11:50 +0200)
commitfa44efa0ef1972ac1e2f66996303154be11f605e
tree90cc20f3b33d4e551547a82c37311149e55b1b6e
parentfa3abf5a51d42b2d62e1bc89e9465b398a567e94
gh-144023: Prevent follow_symlinks from being allowed with an fd of 0 (GH-144022)

The check was (fd > 0), should be (fd >= 0).
Lib/test/test_os/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