diff options
author | paul <paul> | 2007-06-20 15:22:14 +0000 |
---|---|---|
committer | paul <paul> | 2007-06-20 15:22:14 +0000 |
commit | 2fab1afcdcb0f729ee35eeb6de78c5c8305e143f (patch) | |
tree | b29500cbf462338686623f18741134a542c96705 /vtysh/vtysh.c | |
parent | cc805779aaa2e0d3599b87aa6ad572911f5a0968 (diff) | |
download | quagga-2fab1afcdcb0f729ee35eeb6de78c5c8305e143f.tar.bz2 quagga-2fab1afcdcb0f729ee35eeb6de78c5c8305e143f.tar.xz |
[vtysh] bug #371: vtysh forgets to print 'end' for write-terminal
2007-06-20 Nicolas Deffayet <nicolas@deffayet.com>
* vtysh.c: (vtysh_write_terminal) Write 'end' when done,
to be consistent with telnet vty, and expected by tools
like rancid.
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r-- | vtysh/vtysh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 777a7ac2..c7efa91b 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); |