cp: make -a option preserve xattrs, but with reduced diagnostics
authorOndřej Vašík <ovasik@redhat.com>
Wed, 11 Mar 2009 15:08:20 +0000 (16:08 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 11 Mar 2009 16:32:44 +0000 (17:32 +0100)
commitc160afe902c07f5052dbd97c726a997db7fa20c0
tree3a63eb8e7bf75eb1d61d65a50c4c40f9e3c43847
parentcf0bb5e05d89d9239a819b696a85532a582c8d38
cp: make -a option preserve xattrs, but with reduced diagnostics

* copy.c (copy_attr_by_fd): Reduce xattr diagnostics for 'cp -a'.
(copy_attr_by_name): Likewise.
* cp.c (main): Preserve xattrs with -a option, when possible.
* doc/coreutils.texi: Document that xattrs are preserved with
cp -a, with no added diagnostics.
* NEWS: Mention the change.
* tests/misc/xattr: Add tests for 'cp --preserve=all' and 'cp -a'.
NEWS
doc/coreutils.texi
src/copy.c
src/cp.c
tests/misc/xattr