mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
nmblookup: don't ignore unknown options
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
6845051266
commit
98c977f44b
@ -433,6 +433,11 @@ int main(int argc, const char *argv[])
|
||||
case OPT_CASE_SENSITIVE:
|
||||
options.case_sensitive = true;
|
||||
break;
|
||||
case POPT_ERROR_BADOPT:
|
||||
fprintf(stderr, "\nInvalid option %s: %s\n\n",
|
||||
poptBadOption(pc, 0), poptStrerror(opt));
|
||||
poptPrintUsage(pc, stderr, 0);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user