diff options
author | 2005-08-17 11:34:16 +0000 | |
---|---|---|
committer | 2005-08-17 11:34:16 +0000 | |
commit | bd6cabe9d13932305c70bf1ac68444ebb3090e1e (patch) | |
tree | 16faad002be280015427f1c81ba07da67a29f893 | |
parent | works better with the actual file. (diff) | |
download | wireguard-openbsd-bd6cabe9d13932305c70bf1ac68444ebb3090e1e.tar.xz wireguard-openbsd-bd6cabe9d13932305c70bf1ac68444ebb3090e1e.zip |
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); |