Skip to content

Commit b1e1a60

Browse files
Merge #1764
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 <[email protected]>
2 parents b44daa1 + 885b943 commit b1e1a60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unistd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,8 @@ pub enum FchownatFlags {
758758
/// If `flag` is `FchownatFlags::NoFollowSymlink` and `path` names a symbolic link,
759759
/// then the mode of the symbolic link is changed.
760760
///
761-
/// `fchownat(None, path, mode, FchownatFlags::NoFollowSymlink)` is identical to
762-
/// a call `libc::lchown(path, mode)`. That's why `lchmod` is unimplemented in
761+
/// `fchownat(None, path, owner, group, FchownatFlags::NoFollowSymlink)` is identical to
762+
/// a call `libc::lchown(path, owner, group)`. That's why `lchown` is unimplemented in
763763
/// the `nix` crate.
764764
///
765765
/// # References

0 commit comments

Comments
 (0)