]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: init: Add missing brackets in the code parsing -sf/-st
authorAurélien Nephtali <aurelien.nephtali@gmail.com>
Sat, 17 Feb 2018 19:53:11 +0000 (20:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Feb 2018 07:02:21 +0000 (08:02 +0100)
commit39b89889e73baab618860d9f5a56e684c096850f
treef06c984af2d9073ee9ef2efb46a8b9b106ac2170
parent4ee76d0281a49d2e32f2e5705c1ad6ac5e5f7aa0
BUG/MINOR: init: Add missing brackets in the code parsing -sf/-st

The codes tries to strip trailing spaces of arguments but due to missing
brackets, it will always exit.

It can be reproduced with this (silly) example:

$ haproxy -f /etc/haproxy/haproxy.cfg -sf 1234 "1235 " 1236
$ echo $?
1

This was introduced in commit 236062f7c ("MINOR: init: emit warning when
-sf/-sd cannot parse argument")

Signed-off-by: Aurélien Nephtali <aurelien.nephtali@gmail.com>
src/haproxy.c