git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
604ce3d
)
s4/regshell: don't ignore unknown options
author
Ralph Boehme
<slow@samba.org>
Fri, 10 Sep 2021 05:23:59 +0000
(07:23 +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/regshell.c
patch
|
blob
|
history
diff --git
a/source4/lib/registry/tools/regshell.c
b/source4/lib/registry/tools/regshell.c
index 79aa546a4dd9ac4f8c806638b580e2f812875494..4d65038d2ae7c0540191444069fffb9cce5cb38f 100644
(file)
--- a/
source4/lib/registry/tools/regshell.c
+++ b/
source4/lib/registry/tools/regshell.c
@@
-606,6
+606,13
@@
int main(int argc, char **argv)
}
while((opt = poptGetNextOpt(pc)) != -1) {
+ switch (opt) {
+ case POPT_ERROR_BADOPT:
+ fprintf(stderr, "\nInvalid option %s: %s\n\n",
+ poptBadOption(pc, 0), poptStrerror(opt));
+ poptPrintUsage(pc, stderr, 0);
+ exit(1);
+ }
}
poptFreeContext(pc);