diff options
author | Ralph Boehme <slow@samba.org> | 2021-09-10 07:21:31 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-09-13 07:48:08 +0000 |
commit | 9e0b596ab7612b11c61c13c1966b55c8b10cbb00 (patch) | |
tree | 135ce63156d03437ce81f7f2f2d413be5c3e8b69 | |
parent | c4dc60a79925d92d7a116b85a896b5ad23e69e43 (diff) | |
download | samba-9e0b596ab7612b11c61c13c1966b55c8b10cbb00.tar.gz |
s4/regdiff: 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 5c75b5bdeb9b39843f115fe07f1a44689af3fcc5)
-rw-r--r-- | source4/lib/registry/tools/regdiff.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/registry/tools/regdiff.c b/source4/lib/registry/tools/regdiff.c index 299f0e96531..aab7b68944c 100644 --- a/source4/lib/registry/tools/regdiff.c +++ b/source4/lib/registry/tools/regdiff.c @@ -142,6 +142,11 @@ int main(int argc, char **argv) remote2 = 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); } } |