]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: set appropriate default permissions for special files
authorPádraig Brady <P@draigBrady.com>
Tue, 20 Feb 2018 03:10:14 +0000 (19:10 -0800)
committerPádraig Brady <P@draigBrady.com>
Sun, 25 Feb 2018 02:15:26 +0000 (18:15 -0800)
commit0a85449ddeeeb5b0432df8158db935d8b56b278e
tree6327cafe4534412803cb057090d0ccdf3b355669
parent33f17ab9dbba0279419ac264a84a201a6bb2d5eb
cp: set appropriate default permissions for special files

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

* src/copy.c (copy_internal): When setting default permissions
to use with --no-preserve=mode, only set executable bits for
directories or sockets.
* NEWS: Mention the fix.
* tests/cp/preserve-mode.sh: Add a test case.
Fixes https://bugs.gnu.org/30534
NEWS
src/copy.c
tests/cp/preserve-mode.sh