diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-30 16:37:04 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-30 16:37:04 +0000 |
commit | fe8bb2f2c52e61bae10fdf356cb417f80c7a591d (patch) | |
tree | 2d677a021896ac8fff9212fad31dbecca732c9d4 /libbb | |
parent | b1e056c12a928db161db5175a1a3fcea56179aa1 (diff) | |
download | busybox-w32-fe8bb2f2c52e61bae10fdf356cb417f80c7a591d.tar.gz busybox-w32-fe8bb2f2c52e61bae10fdf356cb417f80c7a591d.tar.bz2 busybox-w32-fe8bb2f2c52e61bae10fdf356cb417f80c7a591d.zip |
Fix exit status when there is an error copying a file.
git-svn-id: svn://busybox.net/trunk/busybox@2489 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/copy_file.c | 2 |
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: | |||
242 | perror_msg("unable to preserve permissions of `%s'", dest); | 242 | perror_msg("unable to preserve permissions of `%s'", dest); |
243 | } | 243 | } |
244 | 244 | ||
245 | return 0; | 245 | return status; |
246 | } | 246 | } |