summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-05-07 17:32:21 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-05-07 17:32:21 +0000
commite33646025c1a3273377550a7c1c72102ebe8dc2e (patch)
tree9f359516cc77633496eb5684e99d38f3a41cf86d
parent0ef2b3cd971a299f0acc3452922c065304ee22b1 (diff)
Whoops; missed updating a setfile() call.
problem reported dcoppa; ok millert@
-rw-r--r--bin/cp/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 0b4f4361e8a..cf8e0019096 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cp.c,v 1.37 2015/01/16 06:39:31 deraadt Exp $ */
+/* $OpenBSD: cp.c,v 1.38 2015/05/07 17:32:20 guenther Exp $ */
/* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */
/*
@@ -360,7 +360,7 @@ copy(char *argv[], enum op type, int fts_options)
* unmodified by the umask; arguably wrong,
* but it's been that way forever.
*/
- if (pflag && setfile(curr->fts_statp, 0))
+ if (pflag && setfile(curr->fts_statp, -1))
rval = 1;
else if (fts_dne(curr))
(void)chmod(to.p_path,