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

From: Christoph Anton Mitterer <[email-masked]>
Date: Tue, 31 May 2011 15:20:03 +0200

On Tue, 2011-05-31 at 09:42 +0200, Ondrej Vasik wrote:
> Could you please specify coreutils version where you experience the
> issue?
Sorry, forgot that.
This was the corutils from Debian sid, which is currently 8.5.

> but in the case of extended attributes and
> SELinux context possible failure of preserving these attributes doesn't
> change exit status.
Oh that's bad,.. why?
Can I get this behavious by using --preserve=context,xattr,all to REALLY
preserve everything and get errors if this didn't work.

> please try if using --preserve=xattr
> shows an error.
I did, but no error, no preservation.
Also it's on the same filesystem (with user_xattr enabled,.. so there
should be no problem).