1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

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>
(cherry picked from commit bcc4756d8293e452d09a6a73005302eddb6c1f28)
This commit is contained in:
Ralph Boehme 2021-09-10 07:08:59 +02:00 committed by Jule Anger
parent 609509f8ed
commit 362c9f28a3

View File

@ -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);
}
}