[BusyBox-cvs] busybox/coreutils md5_sha1_sum.c,1.4,1.5
Glenn McGrath
bug1 at busybox.net
Sun Feb 22 02:59:00 UTC 2004
Update of /var/cvs/busybox/coreutils
In directory nail:/tmp/cvs-serv29460/coreutils
Modified Files:
md5_sha1_sum.c
Log Message:
Return 1 upon failure
Index: md5_sha1_sum.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/md5_sha1_sum.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- a/md5_sha1_sum.c 20 Nov 2003 05:58:26 -0000 1.4
+++ b/md5_sha1_sum.c 22 Feb 2004 02:58:57 -0000 1.5
@@ -149,6 +149,7 @@
if (!(flags & FLAG_SILENT))
printf("%s: FAILED\n", filename_ptr);
count_failed++;
+ return_value = EXIT_FAILURE;
}
/* possible free(NULL) */
free(hash_value);
@@ -178,7 +179,7 @@
hash_value = hash_file(file_ptr, hash_algo);
if (hash_value == NULL) {
- return_value++;
+ return_value = EXIT_FAILURE;
} else {
printf("%s %s\n", hash_value, file_ptr);
free(hash_value);
More information about the busybox-cvs
mailing list