summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-05-30 16:31:49 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-08 15:08:05 -0400
commitc5e69a025f7d1c15cd1c49d1b8cf7a0c18bbc377 (patch)
tree1a44f6621bf0f9c5015494d5d8ab244df114d43d /lib/command.c
parentdfa251d16295385079f8ab86af3b4fb4bb44923a (diff)
lib/vty: add separate output fd support to VTYs
to be used with stdin/stdout terminals, this adds support for writing to a different FD than we're reading from. Also fixes error messages from config load being written to stdin. [v2: fixed config write] Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit 4715a53b4d390e72a06c864a6a505971841e3dc9)
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index 015d97266d..72a2739895 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -3153,7 +3153,7 @@ DEFUN (config_write_file,
/* Make vty for configuration file. */
file_vty = vty_new ();
- file_vty->fd = fd;
+ file_vty->wfd = fd;
file_vty->type = VTY_FILE;
/* Config file header print. */