mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
MINOR: init: verify that there is a single word on "-cc"
This adds the exact same restriction as commit 5546c8bdc ("MINOR: cfgparse: Fail when encountering extra arguments in macro") but for the "-cc" command line argument, for the sake of consistency.
This commit is contained in:
parent
79c52ec6b4
commit
7edc0fde05
@ -1826,7 +1826,7 @@ static void init(int argc, char **argv)
|
|||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err & PARSE_ERR_TOOMANY) {
|
if ((err & PARSE_ERR_TOOMANY) || *args[1]) {
|
||||||
ha_alert("Error in condition: Too many words.\n");
|
ha_alert("Error in condition: Too many words.\n");
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user