From: Ralph Boehme Date: Fri, 10 Sep 2021 05:26:01 +0000 (+0200) Subject: s4/torture/gentest: don't ignore unknown options X-Git-Tag: ldb-2.5.0~694 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6be1c18bf78db9e45be953d95ef8581daed5b4b;p=thirdparty%2Fsamba.git s4/torture/gentest: don't ignore unknown options BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index bc336aac052..d52f754da71 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -3388,6 +3388,11 @@ int main(int argc, const char *argv[]) CRED_SPECIFIED); username_count++; break; + case POPT_ERROR_BADOPT: + fprintf(stderr, "\nInvalid option %s: %s\n\n", + poptBadOption(pc, 0), poptStrerror(opt)); + poptPrintUsage(pc, stderr, 0); + exit(1); } }