Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/cp Remove warning about system extended attributes that ...
details: https://anonhg.NetBSD.org/src/rev/cfce80d9dda1
branches: trunk
changeset: 768521:cfce80d9dda1
user: manu <manu%NetBSD.org@localhost>
date: Thu Aug 18 08:11:58 2011 +0000
description:
Remove warning about system extended attributes that cannot be copied, since
it will always be displayed when an unprivilegied user moves files across
filesystems (mv(1) uses cp -p in that case). After all, there is no warning
that we loose a setuid bit during a move or copy, so this makes sense.
Fixes bin/45259
diffstat:
bin/cp/cp.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (32 lines):
diff -r 88c81deb4e99 -r cfce80d9dda1 bin/cp/cp.c
--- a/bin/cp/cp.c Thu Aug 18 06:32:35 2011 +0000
+++ b/bin/cp/cp.c Thu Aug 18 08:11:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cp.c,v 1.56 2011/08/03 04:11:15 manu Exp $ */
+/* $NetBSD: cp.c,v 1.57 2011/08/18 08:11:58 manu Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95";
#else
-__RCSID("$NetBSD: cp.c,v 1.56 2011/08/03 04:11:15 manu Exp $");
+__RCSID("$NetBSD: cp.c,v 1.57 2011/08/18 08:11:58 manu Exp $");
#endif
#endif /* not lint */
@@ -197,13 +197,6 @@
myumask = umask(0);
(void)umask(myumask);
- /*
- * Warn that system extended attributes will not be preserved
- * if not root
- */
- if ((myuid != 0) && pflag)
- warnx("system extended attribute will not be preserved");
-
/* Save the target base in "to". */
target = argv[--argc];
if (strlcpy(to.p_path, target, sizeof(to.p_path)) >= sizeof(to.p_path))
Home |
Main Index |
Thread Index |
Old Index