# Bug report ### Bug description: fd_and_follow_symlinks_invalid does not trigger an error is fd is 0 and followsymlinks is false ### CPython versions tested on: CPython main branch ### Operating systems tested on: macOS <!-- gh-linked-prs --> ### Linked PRs * gh-144022 * gh-144151 * gh-144152 <!-- /gh-linked-prs -->
Bug report
Bug description:
fd_and_follow_symlinks_invalid does not trigger an error is fd is 0 and followsymlinks is false
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
follow_symlinksfrom being allowed with an fd of 0 (GH-144022) #144151follow_symlinksfrom being allowed with an fd of 0 (GH-144022) #144152