Skip to content

Commit

Permalink
Merge #1764
Browse files Browse the repository at this point in the history
1764: Fix description of fchownat r=asomers a=valdaarhun

Based on the man page for `fchownat` and `lchown`, I have got the impression that with `FchownatFlags::NoFollowSymlink`, fchownat and lchown are identical. I couldn't find any documentation on `lchmod`.

Co-authored-by: valdaarhun <icegambit91@gmail.com>
  • Loading branch information
bors[bot] and valdaarhun committed Jul 15, 2022
2 parents b44daa1 + 885b943 commit b1e1a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,8 @@ pub enum FchownatFlags {
/// If `flag` is `FchownatFlags::NoFollowSymlink` and `path` names a symbolic link,
/// then the mode of the symbolic link is changed.
///
/// `fchownat(None, path, mode, FchownatFlags::NoFollowSymlink)` is identical to
/// a call `libc::lchown(path, mode)`. That's why `lchmod` is unimplemented in
/// `fchownat(None, path, owner, group, FchownatFlags::NoFollowSymlink)` is identical to
/// a call `libc::lchown(path, owner, group)`. That's why `lchown` is unimplemented in
/// the `nix` crate.
///
/// # References
Expand Down

0 comments on commit b1e1a60

Please sign in to comment.