mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MINOR: init: -S can have a parameter starting with a dash
There is no reason the -S option can't take an argument which starts with a -. This limitation must only be used for options that take a non-finite list of parameters (-sf/-st) This can be backported only if the previous patch which fixes copy_argv() is backported too. Could be backported as far as 1.9.
This commit is contained in:
parent
4f71d304aa
commit
a6b3249935
@ -1882,7 +1882,7 @@ static void init(int argc, char **argv)
|
|||||||
else if (*flag == 'S') {
|
else if (*flag == 'S') {
|
||||||
struct wordlist *c;
|
struct wordlist *c;
|
||||||
|
|
||||||
if (argc <= 1 || argv[1][0] == '-') {
|
if (argc <= 1) {
|
||||||
ha_alert("Socket and optional bind parameters expected with the -S flag\n");
|
ha_alert("Socket and optional bind parameters expected with the -S flag\n");
|
||||||
usage(progname);
|
usage(progname);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user