-
Notifications
You must be signed in to change notification settings - Fork 674
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
Use fstatat to check long path sizes in fcntl::readlinkat #1433
Conversation
Can you explain in a little more detail what the problem is? Or better yet, show that unit test you came up with, even if it doesn't work everywhere. |
The This will work fine if we called it as There is another special case on Linux, where Reference: |
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.
This looks good. I just need to figure out why CI is hanging.
CI is hanging due to a regression in rustup. rust-lang/rustup#2774 |
If you rebase on main, CI should be fixed. |
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.
bors r+
Without this, the
lstat
call ignores thedirfd
and checks the wrong file. I wanted to write a unit test for this but I'm not sure how to do it reliably, AFAIK the maximum path size can vary between filesystems.