From: Matt Kraai Date: Mon, 30 Apr 2001 16:37:04 +0000 (-0000) Subject: Fix exit status when there is an error copying a file. X-Git-Tag: 0_52~272 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=24abecc3490cb419ec9bac79af31f8ded1e3fba7;p=oweals%2Fbusybox.git Fix exit status when there is an error copying a file. --- 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; }