summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/md5/md5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c
index cf0f89ad259..6cd74c912c2 100644
--- a/bin/md5/md5.c
+++ b/bin/md5/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.32 2004/12/29 17:32:44 millert Exp $ */
+/* $OpenBSD: md5.c,v 1.33 2005/08/17 11:34:16 mpf Exp $ */
/*
* Copyright (c) 2001, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -494,8 +494,10 @@ digest_filelist(const char *file, struct hash_functions *defhash)
if (strcmp(checksum, digest) == 0)
(void)printf("(%s) %s: OK\n", algorithm, filename);
- else
+ else {
(void)printf("(%s) %s: FAILED\n", algorithm, filename);
+ error = 1;
+ }
}
if (fp != stdin)
fclose(fp);