-
Notifications
You must be signed in to change notification settings - Fork 683
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
Implement faccessat #1134
Implement faccessat #1134
Conversation
I see |
test/test_unistd.rs
Outdated
let tempdir = tempfile::tempdir().unwrap(); | ||
let path = tempdir.path().join("does_exist.txt"); | ||
let _file = File::create(path.clone()).unwrap(); | ||
assert_eq!( |
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.
Instead of using assert_eq!(..., true)
, just use assert!(...)
.
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.
fixed
Still |
I think the |
Is there any update on this @zmlcc? I was looking for the same feature in |
superseded by #1780 . |
1780: Implement faccessat r=asomers a=nateavers This is a re-post of #1134, which seems to have been abandoned. Includes the changes requested in [this comment](#1134 (comment)). Co-authored-by: Zhang Miaolei <zmlcc@outlook.com>
This adds the
faccessat
function, which is part of POSIX https://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.htmltest cases are copied from
access
function