]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker/cli: don't output a \n before the response
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 1 Jul 2019 08:56:15 +0000 (10:56 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 1 Jul 2019 13:34:11 +0000 (15:34 +0200)
commitad03288e6b28d816abb443cf8c6d984a72bb91a6
tree7e5ef10267252548c890023418c02844c5a1854c
parent3ac0f43020e1cd77198020201e4e482a1c2ef8ac
BUG/MINOR: mworker/cli: don't output a \n before the response

When using a level lower than admin on the master CLI, a \n is output
before the response, this is caused by the response of the "operator" or
"user" that are sent before the actual command.

To fix this problem we introduce the flag APPCTX_CLI_ST1_NOLF which ask
a command response to not be followed by the final \n.
This patch made a special case with the command operator and user
followed by a - so they are not followed by \n.

This patch must be backported to 2.0 and 1.9.
include/types/applet.h
src/cli.c