summaryrefslogtreecommitdiffstats
path: root/bin/cp/cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cp/cp.c')
-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 3c3c223..c8b42e3 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;
OpenPOWER on IntegriCloud