ypmatch does signal success even if it doesn't find the key;
authorderaadt <deraadt@openbsd.org>
Mon, 22 Apr 1996 08:15:47 +0000 (08:15 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 22 Apr 1996 08:15:47 +0000 (08:15 +0000)
from leo@dachau.marco.de; netbsd pr#2315

usr.bin/ypmatch/ypmatch.c

index 8a1917a..534b7a6 100644 (file)
@@ -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);