GNU bug report logs - #8767
cp: --preserve=all doesn't work for the parents when --parent is used

Previous Next

Package: coreutils;

Reported by: Christoph Anton Mitterer <calestyo <at> scientia.net>

Date: Mon, 30 May 2011 22:50:03 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Christoph Anton Mitterer <calestyo <at> scientia.net>
To: 8767 <at> debbugs.gnu.org
Subject: bug#8767: cp: --preserve=all doesn't work for the parents when --parent is used
Date: Mon, 30 May 2011 22:43:02 +0000
Hi.

When doing something like:
cp --no-dereference --preserve=all --parents --no-clobber "${pathname}"
"${destination}"

Then the file (if it's not a directory) will be copied to
${destination}/${pathname} including all the directories within ${pathname}
(e.g. ./foo/bar/file).
While the owner (user/group) and file permission bits of foo and bar seem
to be preserved, the XATTRs are not (maybe the other preserve-classes are
also not preserved).


Doubt that this is desired, so I guess it's a bug.


Cheers,
Chris.




This bug report was last modified 6 years and 284 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.