We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3408dc1 commit 451c8cdCopy full SHA for 451c8cd
library/std/src/os/unix/fs.rs
@@ -985,7 +985,7 @@ impl DirBuilderExt for fs::DirBuilder {
985
/// Changing the owner typically requires privileges, such as root or a specific capability.
986
/// Changing the group typically requires either being the owner and a member of the group, or
987
/// having privileges.
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. See: <https://www.man7.org/linux/man-pages/man2/chown.2.html>
0 commit comments