]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: arg: make make_arg_list() stop after its own arguments
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Feb 2020 07:40:37 +0000 (08:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Feb 2020 18:02:06 +0000 (19:02 +0100)
commit80b53ffb1cd4d84a710b98e6d350be50d2067b5e
tree87d886504d8de8b300183860a7ca2d50f5de2494
parented2c662b01c40e874870330d74b78adf725abbd2
MEDIUM: arg: make make_arg_list() stop after its own arguments

The main problem we're having with argument parsing is that at the
moment the caller looks for the first character looking like an end
of arguments (')') and calls make_arg_list() on the sub-string inside
the parenthesis.

Let's first change the way it works so that make_arg_list() also
consumes the parenthesis and returns the pointer to the first char not
consumed. This will later permit to refine each argument parsing.

For now there is no functional change.
include/proto/arg.h
src/acl.c
src/arg.c
src/sample.c