]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: initialize vty with split fd correctly
authorChristian Franke <chris@opensourcerouting.org>
Mon, 30 Oct 2017 02:53:22 +0000 (03:53 +0100)
committerChristian Franke <chris@opensourcerouting.org>
Tue, 7 Nov 2017 02:50:17 +0000 (03:50 +0100)
vtysh/vtysh_config.c

index 942980bd860df34ea167471d14fdbe50973f617f..2a6f756f4f2c785c386363c74850a5df81789475 100644 (file)
@@ -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;