diff options
author | Ralph Boehme <slow@samba.org> | 2021-09-10 07:12:21 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-09-13 07:48:08 +0000 |
commit | 647e2865eb3ba5dba1c0e2c2543fedfc45a6d3e4 (patch) | |
tree | ee5aed8e1b0753b61275894c03d0b94a19987266 | |
parent | 2270e098c02b7ed8a572e3fcc59ab12cb0b8339f (diff) | |
download | samba-647e2865eb3ba5dba1c0e2c2543fedfc45a6d3e4.tar.gz |
smbcquotas: 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 46a0da16710f99f33780d030557562e1a52a8cba)
-rw-r--r-- | source3/utils/smbcquotas.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index 8c54ad8e1e8..748334a04a6 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -723,6 +723,11 @@ int main(int argc, char *argv[]) lp_set_cmdline("client max protocol", poptGetOptArg(pc)); break; + case POPT_ERROR_BADOPT: + fprintf(stderr, "\nInvalid option %s: %s\n\n", + poptBadOption(pc, 0), poptStrerror(opt)); + poptPrintUsage(pc, stderr, 0); + exit(1); } } |