summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-09-10 07:05:02 +0200
committerRalph Boehme <slow@samba.org>2021-09-10 15:10:30 +0000
commit4056bebf05f4d1e0bfcbc5fe53d63b3bab9e031f (patch)
tree6b7cccc03b6e2bf67332ebe05571af9c114b7610
parent96ab7909bd9eea14ba3aad535c28d53c184341a2 (diff)
downloadsamba-4056bebf05f4d1e0bfcbc5fe53d63b3bab9e031f.tar.gz
s3/async-tracker: 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>
-rw-r--r--source3/utils/async-tracker.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/async-tracker.c b/source3/utils/async-tracker.c
index fff85989473..7b6c2c01986 100644
--- a/source3/utils/async-tracker.c
+++ b/source3/utils/async-tracker.c
@@ -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);
}
}