mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
doc: cp: clarify behavior of the --preserve=xattr option
* doc/coreutils.texi (cp invocation): Enhance documentation of the --preserve=xattr option regarding the preservation of ACLs, SELinux contexts and capabilities: the user may notice this only when not specifying --preserve=mode and --preserve=context, too, i.e., otherwise, these attributes are preserved anyway.
This commit is contained in:
1 parent
63d456ce77
commit
6f374d7c42
1 file changed
+2
-1
+2
-1
@@ -7838,7 +7838,8 @@ Preserve SELinux security context of the file, or fail with full diagnostics.
|
||||
Preserve extended attributes of the file, or fail with full diagnostics.
|
||||
If @command{cp} is built without xattr support, ignore this option.
|
||||
If SELinux context, ACLs or Capabilities are implemented using xattrs,
|
||||
they are preserved by this option as well.
|
||||
they are preserved implicitly by this option as well, i.e., even without
|
||||
specifying @option{--preserve=mode} or @option{--preserve=context}.
|
||||
@item all
|
||||
Preserve all file attributes.
|
||||
Equivalent to specifying all of the above, but with the difference
|
||||
|
||||
Reference in new issue
Block a user