From: Paul Jakma Date: Wed, 20 Jun 2007 15:22:14 +0000 (+0000) Subject: [vtysh] bug #371: vtysh forgets to print 'end' for write-terminal X-Git-Tag: frr-2.0-rc1~2503 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8454b05606c906cff891fa97b4395d1e2fdb8cde;p=mirror%2Ffrr.git [vtysh] bug #371: vtysh forgets to print 'end' for write-terminal 2007-06-20 Nicolas Deffayet * vtysh.c: (vtysh_write_terminal) Write 'end' when done, to be consistent with telnet vty, and expected by tools like rancid. --- diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog index a582b959e2..f2ba333260 100644 --- a/vtysh/ChangeLog +++ b/vtysh/ChangeLog @@ -1,3 +1,9 @@ +2007-06-20 Nicolas Deffayet + + * vtysh.c: (vtysh_write_terminal) Write 'end' when done, + to be consistent with telnet vty, and expected by tools + like rancid. + 2007-05-01 David L Stevens * vtysh/extract.pl.in: added VTYSH_ZEBRA flag for route-map and diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 777a7ac26b..c7efa91bd4 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -1709,6 +1709,8 @@ DEFUN (vtysh_write_terminal, vtysh_config_dump (fp); + vty_out (vty, "end%s", VTY_NEWLINE); + if (vtysh_pager_name && fp) { fflush (fp);