-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-144023: prevent follow_symlinks from being allowed with an fd of 0 #144022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5e70bef to
b253e1e
Compare
sobolevn
left a comment
There was a problem hiding this 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?
Current behavior: |
…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.
Thank you! |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. LGTM. 👍
sobolevn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
Thanks @AZero13 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
|
Sorry, @AZero13 and @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @AZero13 and @serhiy-storchaka, I could not cleanly backport this to |
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.