]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:53:02 +0000 (15:53 +0000)
committerGitHub <noreply@github.com>
Thu, 22 Jan 2026 15:53:02 +0000 (15:53 +0000)
commitfbc81558a4dff59eac0f4de52682e895f8b639c7
tree325827c1f76db4cbd661507790c4a4110f43bc6f
parentf2b9a74cf6fea5e9cff3c753bbe07b213c1d1380
[3.14] gh-144023: Prevent `follow_symlinks` from being allowed with an fd of 0 (GH-144022) (#144151)

[3.14] 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