#1054128 coreutils: cp -p --parent not working

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
Georg Borgström
Date:
2023-10-17 15:27:03 UTC
Severity:
normal
#1054128#5
Date:
2023-10-17 14:54:41 UTC
From:
To:
Dear Maintainer,

This doesn't work in bookworm but works in bullseye:

$ mkdir /tmp/newdir
$ cp -p --parent /etc/passwd /tmp/newdir
cp: ‘etc’: No such file or directory

/tmp/newdir/etc gets created but with wrong permission and also the error message above.

$ ls -ald /tmp/newdir/etc
drwx------ 2 gb gb 60 Oct 17 14:54 /tmp/newdir/etc

Should be:
drwxr-xr-x 2 gb gb 60 Oct 17 11:09 /tmp/newdir/etc

Could be the same as:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2017414

#1054128#10
Date:
2023-10-17 15:23:56 UTC
From:
To: