Skip to content

Conversation

@AZero13
Copy link
Contributor

@AZero13 AZero13 commented Jan 19, 2026

fd_and_follow_symlinks_invalid lets you use fd and follow_symlinks together if fd is 0.

This is incorrect, as 0 is a valid fd.

@AZero13 AZero13 changed the title posixmodule: fd_and_follow_symlinks_invalid lets fd be 0 gh-144023: fd_and_follow_symlinks_invalid lets fd be 0 Jan 19, 2026
@AZero13 AZero13 force-pushed the careful branch 2 times, most recently from 5e70bef to b253e1e Compare January 19, 2026 05:58
…d of 0

fd_and_follow_symlinks_invalid lets you use fd and follow_symlinks together if fd is 0.

This is incorrect, as 0 is a valid fd.
@AZero13 AZero13 changed the title gh-144023: fd_and_follow_symlinks_invalid lets fd be 0 gh-144023: prevent follow_symlinks from being allowed with an fd of 0 Jan 19, 2026
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way to test this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants