Module Name: src Committed By: manu Date: Wed Aug 3 12:55:03 UTC 2011
Modified Files: src/bin/cp: cp.1 Log Message: iExplain what happens to extended attriutes when -p is used. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/bin/cp/cp.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/cp/cp.1 diff -u src/bin/cp/cp.1:1.38 src/bin/cp/cp.1:1.39 --- src/bin/cp/cp.1:1.38 Sat Apr 2 08:38:56 2011 +++ src/bin/cp/cp.1 Wed Aug 3 12:55:03 2011 @@ -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