Fix exit status when there is an error copying a file.
authorMatt Kraai <kraai@debian.org>
Mon, 30 Apr 2001 16:37:04 +0000 (16:37 -0000)
committerMatt Kraai <kraai@debian.org>
Mon, 30 Apr 2001 16:37:04 +0000 (16:37 -0000)
libbb/copy_file.c

index 6c220022fe37eeab89574f9cae5282b0da08d236..062ecb901c6ad051f5a03ba1c5bdbca81fbfb37d 100644 (file)
@@ -242,5 +242,5 @@ end:
                        perror_msg("unable to preserve permissions of `%s'", dest);
        }
 
-       return 0;
+       return status;
 }