]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/async-tracker: don't ignore unknown options
authorRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 05:05:02 +0000 (07:05 +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>
source3/utils/async-tracker.c

index fff85989473de21a5f15b674fdfcf5c5dc3aa21a..7b6c2c0198681a53d8ef6a22dfc33d22b622f5e8 100644 (file)
@@ -267,6 +267,11 @@ int main(int argc, const char **argv)
                case 't':
                        state->loop_type = TEVENT_LOOP;
                        break;
+               case POPT_ERROR_BADOPT:
+                       fprintf(stderr, "\nInvalid option %s: %s\n\n",
+                               poptBadOption(pc, 0), poptStrerror(c));
+                       poptPrintUsage(pc, stderr, 0);
+                       exit(1);
                }
        }