Skip to content

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

Merged
sunfishcode merged 4 commits intomainfrom
sunfishcode/abs
Oct 18, 2024
Merged

Add a rustix::fs::ABS constant.#1189
sunfishcode merged 4 commits intomainfrom
sunfishcode/abs

Conversation

@sunfishcode
Copy link
Copy Markdown
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
@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