From: Ralph Boehme Date: Fri, 10 Sep 2021 05:08:59 +0000 (+0200) Subject: pdbedit: don't ignore unknown options X-Git-Tag: ldb-2.5.0~709 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcc4756d8293e452d09a6a73005302eddb6c1f28;p=thirdparty%2Fsamba.git pdbedit: don't ignore unknown options BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- 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); } }