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:
372adfd
)
regedit: don't ignore unknown options
author
Ralph Boehme
<slow@samba.org>
Fri, 10 Sep 2021 05:10:39 +0000
(07:10 +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>
source3/utils/regedit.c
patch
|
blob
|
history
diff --git
a/source3/utils/regedit.c
b/source3/utils/regedit.c
index aa5f215e3755672fd4f2dd5fa716c62f3317e2e9..c7144ee1c7015fb4b088e5739102a92a0d6db52d 100644
(file)
--- a/
source3/utils/regedit.c
+++ b/
source3/utils/regedit.c
@@
-801,7
+801,13
@@
int main(int argc, char **argv)
}
while ((opt = poptGetNextOpt(pc)) != -1) {
- /* TODO */
+ 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);