diff options
author | dd <dd@FreeBSD.org> | 2001-07-13 14:10:09 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-07-13 14:10:09 +0000 |
commit | 948453970e588ce0752772fa3a37b099b55001e3 (patch) | |
tree | 640f0de9f3f77c1182b92ef9da93b8b252899ef5 /usr.sbin | |
parent | bd37181c768a67113428f861ea10a66df337a15d (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/ypbind/ypbind.c | 2 |
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) */ |