mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4/cifsdd: 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
ac292ec428
commit
08532b3d2e
@ -669,7 +669,13 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
while ((i = poptGetNextOpt(pctx)) != -1) {
|
||||
;
|
||||
switch (i) {
|
||||
case POPT_ERROR_BADOPT:
|
||||
fprintf(stderr, "\nInvalid option %s: %s\n\n",
|
||||
poptBadOption(pctx, 0), poptStrerror(i));
|
||||
poptPrintUsage(pctx, stderr, 0);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
for (dd_args = poptGetArgs(pctx); dd_args && *dd_args; ++dd_args) {
|
||||
|
Loading…
Reference in New Issue
Block a user