summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-13 14:10:09 +0000
committerdd <dd@FreeBSD.org>2001-07-13 14:10:09 +0000
commit948453970e588ce0752772fa3a37b099b55001e3 (patch)
tree640f0de9f3f77c1182b92ef9da93b8b252899ef5 /usr.sbin/ypbind
parentbd37181c768a67113428f861ea10a66df337a15d (diff)
downloadFreeBSD-src-948453970e588ce0752772fa3a37b099b55001e3.zip
FreeBSD-src-948453970e588ce0752772fa3a37b099b55001e3.tar.gz
Whine if we discover an unknown option. This program doesn't use
getopt(3) (and can't be converted without breaking compatibility), and it's very irritating to have it silently DTWT if one combines options together (e.g., "-msS domain,server").
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index e178f6a..bdc3aa4 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -419,6 +419,8 @@ char **argv;
yp_restricted_mode(argv[i+1]);
else if (strcmp("-m", argv[i]) == 0)
yp_manycast++;
+ else
+ errx(1, "unknown option: %s", argv[i]);
}
/* blow away everything in BINDINGDIR (if it exists) */
OpenPOWER on IntegriCloud