Skip to content

Commit d8be0bc

Browse files
committed
updated comment
1 parent 8abd158 commit d8be0bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/cp/src/copydir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ fn build_dir(
669669
excluded_perms |= umask;
670670
// Always keep the owner write bit so we can copy files into the directory.
671671
// 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
672+
let mode = (!excluded_perms & 0o777) | 0o200; // mask to permission bits, always keep owner write
673673
std::os::unix::fs::DirBuilderExt::mode(&mut builder, mode);
674674
}
675675

0 commit comments

Comments
 (0)