1
Fork 0

Update chown help with a link and adding cap warning

Linked to chown(2) manpage on the web which expands on chown call behaviour.
This commit is contained in:
Peter Gervai 2024-08-22 18:38:27 +02:00 committed by GitHub
parent a9ecd0fa81
commit 3408dc1eb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -988,7 +988,8 @@ impl DirBuilderExt for fs::DirBuilder {
///
/// Be aware that changing owner clears the `suid` and `sgid` permission bits in most cases
/// according to POSIX, usually even if the user is root. The sgid is not cleared when
/// the file is non-group-executable.
/// the file is non-group-executable. See: <https://www.man7.org/linux/man-pages/man2/chown.2.html>
/// This call may also clear file capabilities, if there was any.
///
/// If called on a symbolic link, this will change the owner and group of the link target. To
/// change the owner and group of the link itself, see [`lchown`].