diff options
author | Ralph Boehme <slow@samba.org> | 2021-09-10 07:08:59 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2021-09-10 15:10:30 +0000 |
commit | bcc4756d8293e452d09a6a73005302eddb6c1f28 (patch) | |
tree | ce450aa6ed8e11ec9dece62f3430bf79a643fe79 /source3/utils | |
parent | 5536e7981c3902014e91cdfa5bd9a17276e41be7 (diff) | |
download | samba-bcc4756d8293e452d09a6a73005302eddb6c1f28.tar.gz |
pdbedit: 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 'source3/utils')
-rw-r--r-- | source3/utils/pdbedit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 7d42b9def85..4fdcc3ee428 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -1139,6 +1139,11 @@ int main(int argc, const char **argv) case 'C': account_policy_value_set = 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); } } |