Skip to content

Missing Flag For nix::unistd::fchownat #1029

@gatoWololo

Description

@gatoWololo

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's flag argument nix::unistd::FchownatFlags. Where the variants are either FollowSymlink or NoFollowSymlink. According to man 2 fchownat since Linux 2.6.39 fchownat() may also takes AT_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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions