projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1c4b11
)
Return 1 upon failure
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 22 Feb 2004 02:58:57 +0000
(
02:58
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 22 Feb 2004 02:58:57 +0000
(
02:58
-0000)
coreutils/md5_sha1_sum.c
patch
|
blob
|
history
diff --git
a/coreutils/md5_sha1_sum.c
b/coreutils/md5_sha1_sum.c
index b5e29cd72833429882678906ce5cd76c9574cd8d..83f6da18067167140c396fcab143cd2713667c8a 100644
(file)
--- 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)
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
@@
extern int hash_files(int argc, char **argv, const uint8_t hash_algo)
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);