From: epg <> Date: Sun, 25 Aug 2002 22:29:48 +0000 (+0000) Subject: (is_spam): Change logic of testing razor-check exit code slightly to X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/b4a3bbf6509bd9ed01655a03ae11d8541dfc367b?ds=sidebyside (is_spam): Change logic of testing razor-check exit code slightly to bomb if execution of razor-check failed (as opposed to sucessful execution with a failure exit code). --- diff --git a/minc b/minc index 5b5b6d1..c192e59 100755 --- a/minc +++ b/minc @@ -386,7 +386,9 @@ sub is_spam { if ($run) { $status = system("razor-check < $msg"); - if (WIFEXITED($status) and WEXITSTATUS($status) == 0) { + if (not WIFEXITED($status)) { + err(&EX_TEMPFAIL, "Failed to run razor-check < $msg"); + } elsif (WEXITSTATUS($status) == 0) { return 1; } else { return 0;