diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-02-22 02:58:57 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-02-22 02:58:57 +0000 |
commit | 1900ce2e2767c4653fa5db3ae88a33e2f8fca0fd (patch) | |
tree | ee1217e5645096f4bcb39b6483455b4e23641517 | |
parent | 3520ebaf085126e8f7486a730886a424458246a8 (diff) | |
download | busybox-w32-1900ce2e2767c4653fa5db3ae88a33e2f8fca0fd.tar.gz busybox-w32-1900ce2e2767c4653fa5db3ae88a33e2f8fca0fd.tar.bz2 busybox-w32-1900ce2e2767c4653fa5db3ae88a33e2f8fca0fd.zip |
Return 1 upon failure
git-svn-id: svn://busybox.net/trunk/busybox@8533 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | coreutils/md5_sha1_sum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index b5e29cd72..83f6da180 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
@@ -149,6 +149,7 @@ extern int hash_files(int argc, char **argv, const uint8_t hash_algo) | |||
149 | if (!(flags & FLAG_SILENT)) | 149 | if (!(flags & FLAG_SILENT)) |
150 | printf("%s: FAILED\n", filename_ptr); | 150 | printf("%s: FAILED\n", filename_ptr); |
151 | count_failed++; | 151 | count_failed++; |
152 | return_value = EXIT_FAILURE; | ||
152 | } | 153 | } |
153 | /* possible free(NULL) */ | 154 | /* possible free(NULL) */ |
154 | free(hash_value); | 155 | free(hash_value); |
@@ -178,7 +179,7 @@ extern int hash_files(int argc, char **argv, const uint8_t hash_algo) | |||
178 | 179 | ||
179 | hash_value = hash_file(file_ptr, hash_algo); | 180 | hash_value = hash_file(file_ptr, hash_algo); |
180 | if (hash_value == NULL) { | 181 | if (hash_value == NULL) { |
181 | return_value++; | 182 | return_value = EXIT_FAILURE; |
182 | } else { | 183 | } else { |
183 | printf("%s %s\n", hash_value, file_ptr); | 184 | printf("%s %s\n", hash_value, file_ptr); |
184 | free(hash_value); | 185 | free(hash_value); |