mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MINOR: init: -x can have a parameter starting with a dash
There is no reason the -x 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.8.
This commit is contained in:
parent
df6c5a8ffa
commit
4f71d304aa
1 changed files with 1 additions and 1 deletions
|
|
@ -1868,7 +1868,7 @@ static void init(int argc, char **argv)
|
|||
else if (*flag == 'q')
|
||||
arg_mode |= MODE_QUIET;
|
||||
else if (*flag == 'x') {
|
||||
if (argc <= 1 || argv[1][0] == '-') {
|
||||
if (argc <= 1) {
|
||||
ha_alert("Unix socket path expected with the -x flag\n\n");
|
||||
usage(progname);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue