mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s4/torture/gentest: 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
ecb27e02e1
commit
f6be1c18bf
@ -3388,6 +3388,11 @@ int main(int argc, const char *argv[])
|
|||||||
CRED_SPECIFIED);
|
CRED_SPECIFIED);
|
||||||
username_count++;
|
username_count++;
|
||||||
break;
|
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…
Reference in New Issue
Block a user