diff options
author | Ralph Boehme <slow@samba.org> | 2021-09-10 07:16:30 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-09-13 07:48:08 +0000 |
commit | c4dc60a79925d92d7a116b85a896b5ad23e69e43 (patch) | |
tree | d139fe1d706b2d0eafef1ca40bc1f306535674fb | |
parent | c94c2bb75030898788881cf3eeac805496e7da6b (diff) | |
download | samba-c4dc60a79925d92d7a116b85a896b5ad23e69e43.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>
(cherry picked from commit 08532b3d2e0f66ee524401b8b939b3af31b6b7cd)
-rw-r--r-- | source4/client/cifsdd.c | 8 |
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) { |