diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2005-08-17 11:34:17 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2005-08-17 11:34:17 +0000 |
commit | d04b79d19ad3ffdc41da81aace285b04c5683a31 (patch) | |
tree | e6414b0086e3c4404767dac27ccd2b367d8c6577 | |
parent | f1324c9a45889f6e129505848f717bd233646903 (diff) |
Exit unsuccessfully when comparing against a checklist file fails.
OK markus@ millert@
-rw-r--r-- | bin/md5/md5.c | 6 |
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); |