From fe8bb2f2c52e61bae10fdf356cb417f80c7a591d Mon Sep 17 00:00:00 2001 From: kraai Date: Mon, 30 Apr 2001 16:37:04 +0000 Subject: 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 --- libbb/copy_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-55-g6feb