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