]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker: fix the reload with an -- option
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 5 Jun 2020 12:08:41 +0000 (14:08 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 5 Jun 2020 12:30:53 +0000 (14:30 +0200)
commit0041741ef7253fcad2fc98f0b2a9968fb4af3574
treeade6604eea106a9c14215c504da5eaf65517475b
parenta6b3249935cf8e4de53b9940419683ef82cb40b8
BUG/MEDIUM: mworker: fix the reload with an -- option

When HAProxy is started with a '--' option, all following parameters are
considered configuration files. You can't add new options after a '--'.

The current reload system of the master-worker adds extra options at the
end of the arguments list. Which is a problem if HAProxy was started wih
'--'.

This patch fixes the issue by copying the new option at the beginning of
the arguments list instead of the end.

This patch must be backported as far as 1.8.
src/haproxy.c