cp: with --no-preserve=mode ensure set-group-ID bits maintained on dirs
commit30039cb23a2cbdc2ef92e7c474bd9d9ae404ffe0
authorPádraig Brady <P@draigBrady.com>
Mon, 25 Mar 2024 22:17:35 +0000 (25 22:17 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 25 Mar 2024 22:27:15 +0000 (25 22:27 +0000)
tree745a2014b9d7e1ee496b5bb2330e736cfe5ca0cc
parentc0f02a8f5b164d72438168bce88328193ab39c34
cp: with --no-preserve=mode ensure set-group-ID bits maintained on dirs

This issue was introduced in commit v8.19-145-g24ebca6

* src/copy.c (copy_internal): On systems that don't support ACLs,
the fallback default chmod done on directories should maintain
the set-group-ID, as that's generally auto-set by the system.
* NEWS: Mention the fix.
Reported by Bruno Haible on Alpine (with tests/cp/preserve-mode.sh)
NEWS
src/copy.c