]> git.proxmox.com Git - mirror_frr.git/commit
lib: fix output mangling with | include
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 6 Jun 2018 19:09:44 +0000 (19:09 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 6 Jun 2018 19:09:44 +0000 (19:09 +0000)
commit0b42d81ab8b4bd15791ba3e72bc26f41827576a7
tree8da4e9a2ef88420356cc021f7e7a5c30cb6be9d1
parent6ef6e4f0531f34cd5f7930483ed50231fdf6af3a
lib: fix output mangling with | include

Sometimes output would be mangled when filtering with include as a
result of the following bugs:

* Filters were applied per each call to vty_out() instead of buffering
  until a line break and then applying
* Long output would sometimes be cut due to using the wrong buffer
  pointer

Also remove the trailing \n as it should no longer be necessary to
ensure the vty prompt ends up on a new line.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command.c
lib/vty.c
lib/vty.h