summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1997-06-25 21:02:12 +0000
committertegge <tegge@FreeBSD.org>1997-06-25 21:02:12 +0000
commit588fb5df8a7838ceca40cf18d3a57293d62e5f4c (patch)
tree4bb1a30ff8d45b8be97260f98a10389150f2b81a /usr.bin
parentcf91630f75ebc45189e17de5b12f27a96a7605f3 (diff)
downloadFreeBSD-src-588fb5df8a7838ceca40cf18d3a57293d62e5f4c.zip
FreeBSD-src-588fb5df8a7838ceca40cf18d3a57293d62e5f4c.tar.gz
Treat no match as a failure. This is the normal behaviour on SunOS.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ypmatch/ypmatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c
index 3fe57d6..ded9624 100644
--- a/usr.bin/ypmatch/ypmatch.c
+++ b/usr.bin/ypmatch/ypmatch.c
@@ -127,6 +127,7 @@ char **argv;
default:
fprintf(stderr, "Can't match key %s in map %s. Reason: %s\n",
inkey, inmap, yperr_string(r));
+ exit(1);
break;
}
}
OpenPOWER on IntegriCloud