# 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-linked-prs -->