BUG/MINOR: init: -S can have a parameter starting with a dash
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 4 Jun 2020 21:49:20 +0000 (23:49 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 5 Jun 2020 17:07:23 +0000 (19:07 +0200)
commita1de71f2577ee9cf071eefd36e1d445deba29388
treeba5bee029c424bf56c74ff7b7ae71b70c9247f4d
parent6947f1921d3ed197f47325a66976960409d47cf7
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.

(cherry picked from commit a6b3249935cf8e4de53b9940419683ef82cb40b8)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/haproxy.c