Skip to content
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

Add a rustix::fs::ABS constant. #1189

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Add a rustix::fs::ABS constant. #1189

merged 4 commits into from
Oct 18, 2024

Conversation

sunfishcode
Copy link
Member

Add a rustix::fs::ABS constant, which corresponds to the undocumented but commonly used convention of using -EBADF as the file descriptor in openat and similar calls. This makes them fail if the path is not absolute.

Fixes #1187.

Add a `rustix::fs::ABS` constant, which corresponds to the undocumented
but commonly used convention of using `-EBADF` as the file descriptor in
`openat` and similar calls. This makes them fail if the path is not
absolute.

Fixes #1187.
@sunfishcode sunfishcode merged commit 873bac5 into main Oct 18, 2024
10 of 12 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/abs branch October 18, 2024 15:19
sunfishcode added a commit that referenced this pull request Oct 27, 2024
Add a `rustix::fs::ABS` constant, which corresponds to the undocumented
but commonly used convention of using `-EBADF` as the file descriptor in
`openat` and similar calls. This makes them fail if the path is not
absolute.

Fixes #1187.
sunfishcode added a commit that referenced this pull request Oct 27, 2024
Add a `rustix::fs::ABS` constant, which corresponds to the undocumented
but commonly used convention of using `-EBADF` as the file descriptor in
`openat` and similar calls. This makes them fail if the path is not
absolute.

Fixes #1187.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fs: using -EBADF as a dirfd argument
1 participant