From 24abecc3490cb419ec9bac79af31f8ded1e3fba7 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 30 Apr 2001 16:37:04 +0000 Subject: [PATCH] Fix exit status when there is an error copying a file. --- 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; } -- 2.25.1