summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai2001-04-30 16:37:04 +0000
committerMatt Kraai2001-04-30 16:37:04 +0000
commit24abecc3490cb419ec9bac79af31f8ded1e3fba7 (patch)
tree2d677a021896ac8fff9212fad31dbecca732c9d4
parentaf166e7ce0ceb4b19402a48c68127b425d01fd57 (diff)
downloadbusybox-24abecc3490cb419ec9bac79af31f8ded1e3fba7.zip
busybox-24abecc3490cb419ec9bac79af31f8ded1e3fba7.tar.gz
Fix exit status when there is an error copying a file.
-rw-r--r--libbb/copy_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c
index 6c22002..062ecb9 100644
--- a/libbb/copy_file.c
+++ b/libbb/copy_file.c
@@ -242,5 +242,5 @@ end:
perror_msg("unable to preserve permissions of `%s'", dest);
}
- return 0;
+ return status;
}