]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture/gentest: don't ignore unknown options
authorRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 05:26:01 +0000 (07:26 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 15:10:30 +0000 (15:10 +0000)
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>
source4/torture/gentest.c

index bc336aac052ab3ea05f563298d35536760390d1c..d52f754da7127c75cd0dec7bf194eea57c17ae49 100644 (file)
@@ -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);
                }
        }