diff options
author | Jim Meyering <jim@meyering.net> | 1997-10-06 05:23:49 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-10-06 05:23:49 +0000 |
commit | 48f0a083329b989bda90aeda763a4222155a6a06 (patch) | |
tree | 1ef01fc4eabec16327cfdd747eaef6252027c6cf | |
parent | c8eb28c84bec0c72c1e13a8352246b9043c4073f (diff) | |
download | coreutils-48f0a083329b989bda90aeda763a4222155a6a06.tar.xz |
fix braino
-rw-r--r-- | src/copy.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/copy.c b/src/copy.c index 93f4aaa05..c76fbcda4 100644 --- a/src/copy.c +++ b/src/copy.c @@ -709,13 +709,15 @@ copy_internal (const char *src_path, const char *dst_path, if (utime (dst_path, &utb)) { error (0, errno, _("preserving times for %s"), dst_path); - return x->require_preserve; + if (x->require_preserve) + return 1; } if (DO_CHOWN (chown, dst_path, src_sb.st_uid, src_sb.st_gid)) { error (0, errno, _("preserving ownership for %s"), dst_path); - return x->require_preserve; + if (x->require_preserve) + return 1; } } @@ -725,7 +727,8 @@ copy_internal (const char *src_path, const char *dst_path, if (chmod (dst_path, src_mode & x->umask_kill)) { error (0, errno, _("preserving permissions for %s"), dst_path); - return x->require_preserve; + if (x->require_preserve) + return 1; } } else if (fix_mode) @@ -757,8 +760,6 @@ valid_options (const struct cp_options *co) /* FIXME: make sure xstat and dereference are consistent. */ assert (co->xstat); - assert (co->require_preserve == 0 || co->require_preserve == 1); - assert (co->sparse_mode != SPARSE_UNUSED); return 1; } |