projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f032c3e
)
MINOR: spoe: Add support of negation for options in SPOE configuration file
author
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 23 Feb 2017 14:06:26 +0000
(15:06 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 9 Mar 2017 14:32:55 +0000
(15:32 +0100)
For now, no options support negation (using "no" keyword). So it always returns
an error.
src/flt_spoe.c
patch
|
blob
|
history
diff --git
a/src/flt_spoe.c
b/src/flt_spoe.c
index
ddfb67b
..
950b6bc
100644
(file)
--- a/
src/flt_spoe.c
+++ b/
src/flt_spoe.c
@@
-3117,6
+3117,15
@@
cfg_parse_spoe_agent(const char *file, int linenum, char **args, int kwm)
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}
+
+ /* Following options does not support negation */
+ if (kwm == 1) {
+ Alert("parsing [%s:%d]: negation is not supported for option '%s'.\n",
+ file, linenum, args[1]);
+ err_code |= ERR_ALERT | ERR_FATAL;
+ goto out;
+ }
+
if (!strcmp(args[1], "var-prefix")) {
char *tmp;