From e4d0fa60d71bb55836120f3728ed6de58f555a40 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 30 Oct 2017 03:53:22 +0100 Subject: [PATCH] vtysh: initialize vty with split fd correctly --- vtysh/vtysh_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index 942980bd86..2a6f756f4f 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -366,7 +366,7 @@ static int vtysh_read_file(FILE *confp) int ret; vty = vty_new(); - vty->fd = 0; /* stdout */ + vty->wfd = STDERR_FILENO; vty->type = VTY_TERM; vty->node = CONFIG_NODE; -- 2.39.5