mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 08:52:07 +01:00
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").
This commit is contained in:
parent
427fc5ed6f
commit
2e2d2a1322
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79665
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user