]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture/masktest: don't ignore unknown options
authorRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 05:27:51 +0000 (07:27 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 16:02:10 +0000 (16:02 +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>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Sep 10 16:02:10 UTC 2021 on sn-devel-184

source4/torture/masktest.c

index d29d18485f7eafff0a9995fba57c00851ecfcca9..5b2457a92e935a6afc16887799e5527e1fb2d573 100644 (file)
@@ -360,6 +360,11 @@ int main(int argc, const char *argv[])
                                          "torture:unclist",
                                          poptGetOptArg(pc));
                        break;
+               case POPT_ERROR_BADOPT:
+                       fprintf(stderr, "\nInvalid option %s: %s\n\n",
+                               poptBadOption(pc, 0), poptStrerror(opt));
+                       poptPrintUsage(pc, stderr, 0);
+                       exit(1);
                }
        }