BUG/MINOR: mworker/cli: fix the escaping in the master CLI
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 18 Jun 2020 16:03:57 +0000 (18:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jul 2020 17:03:54 +0000 (19:03 +0200)
commite302f6ad583f4332dbeeb7e9f73fe91e140966c1
tree1a97e14af921f9335d88497d5fed6882a789d9d8
parent94612ca539faeefb26307fd219cc765dc61d09ae
BUG/MINOR: mworker/cli: fix the escaping in the master CLI

The master CLI must not do the escaping since it forwards the commands
to another CLI. It should be able to split into words by taking care of
the escaping, but must not remove the forwarded backslashes.

This fix do the same thing as the previous patch applied to the
cli_parse_request() function, by taking care of the escaping during the
word split, but it also remove the part which was removing the
backslashes from the forwarded command.

(cherry picked from commit fe249c3df53127d53d55c3fda8e6be7f22cfa58b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/cli.c