]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: Remove useless loop on commands to find unescaped semi-colon
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Feb 2024 15:37:11 +0000 (16:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 23 Feb 2024 14:19:49 +0000 (15:19 +0100)
commite018e8a4195845eb13fced1b6590bf1283bb375c
tree11eeaa3e9b00b22b1857480c4a90cef6c15b4e33
parent73806f067501fef714070b881f2e3d6bc9ec1021
MINOR: cli: Remove useless loop on commands to find unescaped semi-colon

This loop was added to detect pipelined commands when only co_getline() was
used to get commands. Now, co_getdelim() is used and the semi-colon is also
considered as a command delimiter.

As side effet, the last semi-colon, if any, is no longer replaced by a
newline. Thus, we must take care to adapt the test to detect partial
commands.
src/cli.c