git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08532b3
)
s4/regdiff: don't ignore unknown options
author
Ralph Boehme
<slow@samba.org>
Fri, 10 Sep 2021 05:21:31 +0000
(07:21 +0200)
committer
Ralph Boehme
<slow@samba.org>
Fri, 10 Sep 2021 15:10:30 +0000
(15:10 +0000)
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>
source4/lib/registry/tools/regdiff.c
patch
|
blob
|
history
diff --git
a/source4/lib/registry/tools/regdiff.c
b/source4/lib/registry/tools/regdiff.c
index 299f0e96531beaa8e8c4a74e06ed6acc749378ec..aab7b68944c5a9107286e8e03b819cece9a33f7b 100644
(file)
--- 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);
}
}