-
Notifications
You must be signed in to change notification settings - Fork 654
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
Missing Flag For nix::unistd::fchownat #1029
Comments
This sounds like an easy thing to fix. Would you like to write a PR to add the new flag? |
Sure! I can do that. |
I was looking at the flags and the |
Bump. Would be great to get the functionality of |
Yes, I think |
1257: Add fchown(2) wrapper r=asomers a=nateavers Mentioned [in #1029](#1029 (comment)). Co-authored-by: Nate Avers <nathan.avers@alumni.case.edu>
Hello!
Currently
fchownat<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P, owner: Option<Uid>, group: Option<Gid>, flag: FchownatFlags) -> Result<()>
takes an enum as it'sflag
argument nix::unistd::FchownatFlags. Where the variants are eitherFollowSymlink
orNoFollowSymlink
. According toman 2 fchownat
since Linux 2.6.39fchownat()
may also takesAT_EMPTY_PATH
as part of the flags bitmask.This is currently not possible with the current implementation provided by Nix, the enum will probably have to be changed to a bitflag.
The text was updated successfully, but these errors were encountered: