summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-09-10 07:27:13 +0200
committerJule Anger <janger@samba.org>2021-09-13 07:48:08 +0000
commit1eaab01e1788bb477f4a759adde8d4e6d99f7012 (patch)
treedb1315e1797fb158189e16e78de5308372346e7b
parent047274d1278dcc10e4f6df42b0948f23c9727c91 (diff)
downloadsamba-1eaab01e1788bb477f4a759adde8d4e6d99f7012.tar.gz
s4/torture/locktest: 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> (cherry picked from commit 0c47f244312f193c299d5b5b7b00db90364f8c8e)
-rw-r--r--source4/torture/locktest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c
index 6124f36965b..11701a975bb 100644
--- a/source4/torture/locktest.c
+++ b/source4/torture/locktest.c
@@ -646,6 +646,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);
}
}