GNU bug report logs - #78623
cp --preserve=xattr copies attr as well as xattr which breaks cross-FS copy

Previous Next

Package: coreutils;

Reported by: Gael Donval <gael.donval <at> manchester.ac.uk>

Date: Thu, 29 May 2025 05:04:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: Gael Donval <gael.donval <at> manchester.ac.uk>, 78623 <at> debbugs.gnu.org
Subject: bug#78623: cp --preserve=xattr copies attr as well as xattr which breaks cross-FS copy
Date: Fri, 30 May 2025 10:16:08 -0700
On 2025-05-30 02:37, Pádraig Brady wrote:
> we only have this issue with --preserve=xattr which diagnoses any 
> issues.
> Perhaps we would benefit from a --preserve=supported-xattr option?

If we go that route, it might be a bit better if the new option-arg 
began with 'xattr' rather than ended with 'xattr' so that it's easier to 
find in the doc. Perhaps something like --preserve='xattr-try'?

I'm not quite seeing the motivation, though. Why are scripts using 
--preserve=xattr rather than the much-simpler '-a'? That is, why 
preserve xattr but not other metadata?




This bug report was last modified 13 days ago.

Previous Next


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