aboutsummaryrefslogtreecommitdiff
path: root/bin/cp
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2003-06-30 06:16:06 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2003-06-30 06:16:06 +0000
commit529a7167bdee865050c7013947c3d39d925acb50 (patch)
tree93a66220f9170e3364aadce0ffc7f66c89912549 /bin/cp
parent4e650399de81bd0f7fb3e87c9172833a186da1b9 (diff)
downloadsrc-529a7167bdee865050c7013947c3d39d925acb50.tar.gz
src-529a7167bdee865050c7013947c3d39d925acb50.zip
pass -1 to setfile in cp.c
Submitted by: Jun Kuriyama
Notes
Notes: svn path=/head/; revision=117065
Diffstat (limited to 'bin/cp')
-rw-r--r--bin/cp/cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 3c3c2236f46a..c8b42e37662e 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -366,7 +366,7 @@ copy(char *argv[], enum op type, int fts_options)
* normally want to preserve them on directories.
*/
if (pflag) {
- if (setfile(curr->fts_statp, 0))
+ if (setfile(curr->fts_statp, -1))
rval = 1;
} else {
mode = curr->fts_statp->st_mode;