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 8abd158 commit d8be0bcCopy full SHA for d8be0bc
1 file changed
src/uu/cp/src/copydir.rs
@@ -669,7 +669,7 @@ fn build_dir(
669
excluded_perms |= umask;
670
// Always keep the owner write bit so we can copy files into the directory.
671
// The correct final permissions are applied afterward by dirs_needing_permissions.
672
- let mode = (!excluded_perms & 0o777) | 0o200; //use only the last three octet bits
+ let mode = (!excluded_perms & 0o777) | 0o200; // mask to permission bits, always keep owner write
673
std::os::unix::fs::DirBuilderExt::mode(&mut builder, mode);
674
}
675
0 commit comments