summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-09-10 07:16:30 +0200
committerRalph Boehme <slow@samba.org>2021-09-10 15:10:30 +0000
commit08532b3d2e0f66ee524401b8b939b3af31b6b7cd (patch)
tree690debc80ef10ef73440738ebec9f7adda2bdb9a /source4/client
parentac292ec428ea8ef6702e028c15077818000dfa87 (diff)
downloadsamba-08532b3d2e0f66ee524401b8b939b3af31b6b7cd.tar.gz
s4/cifsdd: 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 'source4/client')
-rw-r--r--source4/client/cifsdd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/client/cifsdd.c b/source4/client/cifsdd.c
index de14132a2df..812698e49db 100644
--- a/source4/client/cifsdd.c
+++ b/source4/client/cifsdd.c
@@ -669,7 +669,13 @@ int main(int argc, char *argv[])
}
while ((i = poptGetNextOpt(pctx)) != -1) {
- ;
+ switch (i) {
+ case POPT_ERROR_BADOPT:
+ fprintf(stderr, "\nInvalid option %s: %s\n\n",
+ poptBadOption(pctx, 0), poptStrerror(i));
+ poptPrintUsage(pctx, stderr, 0);
+ exit(1);
+ }
}
for (dd_args = poptGetArgs(pctx); dd_args && *dd_args; ++dd_args) {