cp: with --parents --no-preserve=mode don't copy dir perms
commitbd75118c16d8bca235b61dbb99326c043278a791
authorPádraig Brady <P@draigBrady.com>
Thu, 18 Aug 2016 12:54:48 +0000 (18 13:54 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 18 Aug 2016 12:54:48 +0000 (18 13:54 +0100)
tree42926fb4f780e2d6816928741317ec349a4f1764
parent3e71b0657760825d4c3a356df67a59fc6bc57ec6
cp: with --parents --no-preserve=mode don't copy dir perms

* src/cp.c (make_dir_parents_private): Use default permissions for
created directories when --no-preserve=mode is specified.
* tests/cp/cp-parents.sh: Add a test case.
* NEWS: Mention the fix.
Fixes http://bugs.gnu.org/24251
NEWS
src/cp.c
tests/cp/cp-parents.sh