summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-09-10 07:05:58 +0200
committerRalph Boehme <slow@samba.org>2021-09-10 15:10:30 +0000
commit72a6cf1a8a2903518488cff1bdadd001c5b0b281 (patch)
tree5eb98ee09427746f520afbd8ca1fa9aa4e9badd1 /source3/utils
parent4056bebf05f4d1e0bfcbc5fe53d63b3bab9e031f (diff)
downloadsamba-72a6cf1a8a2903518488cff1bdadd001c5b0b281.tar.gz
log2pcaphex: 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>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/log2pcaphex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c
index f8b5246a43e..2ee2f82af98 100644
--- a/source3/utils/log2pcaphex.c
+++ b/source3/utils/log2pcaphex.c
@@ -334,6 +334,11 @@ int main(int argc, const char **argv)
while((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
+ case POPT_ERROR_BADOPT:
+ fprintf(stderr, "\nInvalid option %s: %s\n\n",
+ poptBadOption(pc, 0), poptStrerror(opt));
+ poptPrintUsage(pc, stderr, 0);
+ exit(1);
}
}