Skip to content

Commit ed6eb51

Browse files
committed
cp: drop 'Like GNU' from the setuid/setgid comment
1 parent aa9b9d9 commit ed6eb51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/uu/cp/src/cp.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,8 +2757,8 @@ fn calculate_dest_permissions(
27572757
let mut permissions = source_metadata.permissions();
27582758
let mode = handle_no_preserve_mode(options, permissions.mode());
27592759

2760-
// Apply umask. Like GNU, never put the setuid/setgid bits on the
2761-
// copy before its ownership is set: when the mode is preserved,
2760+
// Apply umask. Never put the setuid/setgid bits on the copy
2761+
// before its ownership is set: when the mode is preserved,
27622762
// copy_attributes() restores them after the chown.
27632763
let mode = mode & !0o6000 & !uucore::mode::get_umask();
27642764
permissions.set_mode(mode);

0 commit comments

Comments
 (0)