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