We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fc9872 commit c45c46cCopy full SHA for c45c46c
std/src/os/unix/fs.rs
@@ -989,7 +989,8 @@ impl DirBuilderExt for fs::DirBuilder {
989
///
990
/// Be aware that changing owner clears the `suid` and `sgid` permission bits in most cases
991
/// according to POSIX, usually even if the user is root. The sgid is not cleared when
992
-/// the file is non-group-executable.
+/// the file is non-group-executable. See: <https://www.man7.org/linux/man-pages/man2/chown.2.html>
993
+/// This call may also clear file capabilities, if there was any.
994
995
/// If called on a symbolic link, this will change the owner and group of the link target. To
996
/// change the owner and group of the link itself, see [`lchown`].
0 commit comments