Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/cp iExplain what happens to extended attriutes when -p i...



details:   https://anonhg.NetBSD.org/src/rev/4e271b3132a0
branches:  trunk
changeset: 767919:4e271b3132a0
user:      manu <manu%NetBSD.org@localhost>
date:      Wed Aug 03 12:55:03 2011 +0000

description:
iExplain what happens to extended attriutes when -p is used.

diffstat:

 bin/cp/cp.1 |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 5c1e89e79eda -r 4e271b3132a0 bin/cp/cp.1
--- a/bin/cp/cp.1       Wed Aug 03 10:03:51 2011 +0000
+++ b/bin/cp/cp.1       Wed Aug 03 12:55:03 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: cp.1,v 1.38 2011/04/02 08:38:56 mbalmer Exp $
+.\"    $NetBSD: cp.1,v 1.39 2011/08/03 12:55:03 manu Exp $
 .\"
 .\" Copyright (c) 1989, 1990, 1993, 1994
 .\"    The Regents of the University of California.  All rights reserved.
@@ -117,7 +117,8 @@
 Causes
 .Nm
 to preserve in the copy as many of the modification time, access time,
-file flags, file mode, user ID, and group ID as allowed by permissions.
+file flags, file mode, user ID, group ID, and extended attributes,
+as allowed by permissions.
 .Pp
 If the user ID and group ID cannot be preserved, no error message
 is displayed and the exit value is not altered.
@@ -132,6 +133,13 @@
 and either the user ID or group ID cannot be preserved, neither
 the set user ID or set group ID bits are preserved in the copy's
 permissions.
+.Pp
+Extended attributes from all accessible namespaces are copied, the
+others being ignored. If an error occur during the copy, a message is 
+displayed and 
+.Nm cp
+skips
+the other extended attributes for the file.
 .It Fl R
 If
 .Ar source_file



Home | Main Index | Thread Index | Old Index