From: deraadt Date: Mon, 22 Apr 1996 08:15:47 +0000 (+0000) Subject: ypmatch does signal success even if it doesn't find the key; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=748f7da6fe0ac10e4d9f446585e6c1f53838fda3;p=openbsd ypmatch does signal success even if it doesn't find the key; from leo@dachau.marco.de; netbsd pr#2315 --- diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c index 8a1917a96e2..534b7a60c2c 100644 --- a/usr.bin/ypmatch/ypmatch.c +++ b/usr.bin/ypmatch/ypmatch.c @@ -133,7 +133,7 @@ char **argv; default: fprintf(stderr, "Can't match key %s in map %s. Reason: %s\n", inkey, inmap, yperr_string(r)); - break; + exit(1); } } exit(0);