]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: -p --parents: fix failure to preserve permissions for absolute paths
authorPádraig Brady <P@draigBrady.com>
Wed, 3 May 2023 16:01:37 +0000 (17:01 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 3 May 2023 17:15:59 +0000 (18:15 +0100)
commitc6b1fe43474b48a6bf5793e11cc1d0d6e895fdf4
treefbfd84835c5df364f23a6e05135c58894bc15856
parent7223651ad194a5868b58c1be6c7452fd3ca2f75a
cp: -p --parents: fix failure to preserve permissions for absolute paths

* src/cp.c (re_protect): Ensure copy_acl() is passed an absolute path.
* tests/cp/cp-parents.sh: Add a test case.
* NEWS: Mention the bug.
Fixes https://bugs.gnu.org/63245
NEWS
src/cp.c
tests/cp/cp-parents.sh