From df8e52c798e925d8d6fc1ec0d43996bebf1092ef Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 25 Feb 2012 23:34:16 +0000 Subject: [PATCH] hashsum.c: Return nonzero from `checkhash' on errors. A serious bug: `checkhash' carefully maintained the `rc' variable -- and then ignored it and always returned zero anyway. --- hashsum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashsum.c b/hashsum.c index d12c506..820cfbd 100644 --- a/hashsum.c +++ b/hashsum.c @@ -125,7 +125,7 @@ static int checkhash(const gchash *gch, unsigned f, moan("%lu of %lu file(s) failed %s check", nfail, n, hfp.gch->name); else if (!n) moan("no files checked"); - return (0); + return (rc); } static int dohash(const gchash *gch, unsigned f, -- 2.11.0