On 17/10/2023 15:54, Georg Borgström wrote:
Package: coreutils
Version: 9.1-1
Severity: normal
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
I think the upstream fix (released in coreutils 9.4) is:
https://github.com/coreutils/coreutils/commit/c6b1fe434
Pádraig