aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-04-30 16:37:04 +0000
committerMatt Kraai <kraai@debian.org>2001-04-30 16:37:04 +0000
commit24abecc3490cb419ec9bac79af31f8ded1e3fba7 (patch)
tree2d677a021896ac8fff9212fad31dbecca732c9d4 /libbb
parentaf166e7ce0ceb4b19402a48c68127b425d01fd57 (diff)
downloadbusybox-24abecc3490cb419ec9bac79af31f8ded1e3fba7.tar.gz
Fix exit status when there is an error copying a file.
Diffstat (limited to 'libbb')
-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 6c220022f..062ecb901 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;
}