diff options
author | Ralph Boehme <slow@samba.org> | 2021-09-10 07:11:43 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-09-13 07:48:08 +0000 |
commit | 2270e098c02b7ed8a572e3fcc59ab12cb0b8339f (patch) | |
tree | 62e81a6e0d754bc58cac39aeca5a868e7fe34436 | |
parent | eeebabe4067fd5bbbdc77b1c33d07a09214a869a (diff) | |
download | samba-2270e098c02b7ed8a572e3fcc59ab12cb0b8339f.tar.gz |
smbcacls: 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 3755304b6efb98739aca3aa121c095302b09e631)
-rw-r--r-- | source3/utils/smbcacls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index a2d6b6c849d..661d4eacf3e 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -1786,6 +1786,11 @@ int main(int argc, char *argv[]) case 'x': want_mxac = true; break; + case POPT_ERROR_BADOPT: + fprintf(stderr, "\nInvalid option %s: %s\n\n", + poptBadOption(pc, 0), poptStrerror(opt)); + poptPrintUsage(pc, stderr, 0); + exit(1); } } if (inheritance && !the_acl) { |