From 24abecc3490cb419ec9bac79af31f8ded1e3fba7 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 30 Apr 2001 16:37:04 +0000 Subject: Fix exit status when there is an error copying a file. --- libbb/copy_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') 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; } -- cgit v1.1