diff options
author | Ondřej Vašík <ovasik@redhat.com> | 2009-03-11 16:08:20 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-03-11 17:32:44 +0100 |
commit | c160afe902c07f5052dbd97c726a997db7fa20c0 (patch) | |
tree | 3a63eb8e7bf75eb1d61d65a50c4c40f9e3c43847 /doc | |
parent | cf0bb5e05d89d9239a819b696a85532a582c8d38 (diff) | |
download | coreutils-c160afe902c07f5052dbd97c726a997db7fa20c0.tar.xz |
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'.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 2c1fae5c2..0bf978a8e 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -7262,10 +7262,9 @@ Preserve as much as possible of the structure and attributes of the original files in the copy (but do not attempt to preserve internal directory structure; i.e., @samp{ls -U} may list the entries in a copied directory in a different order). -Try to preserve SELinux security context, but ignore any failure to do that -and print no corresponding diagnostic. -This option does not preserve extended attributes(xattr) at the moment. -Equivalent to @option{-dR --preserve=all} with a few exceptions. +Try to preserve SELinux security context and extended attributes (xattr), +but ignore any failure to do that and print no corresponding diagnostic. +Equivalent to @option{-dR --preserve=all} with the reduced diagnostics. @item -b @itemx @w{@kbd{--backup}[=@var{method}]} |