]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: initialize vty for mark_file correctly
authorChristian Franke <chris@opensourcerouting.org>
Mon, 5 Mar 2018 15:01:15 +0000 (16:01 +0100)
committerChristian Franke <chris@opensourcerouting.org>
Mon, 5 Mar 2018 16:17:31 +0000 (17:17 +0100)
Command output should go to stderr, to not clutter the config
output on stdout.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
vtysh/vtysh.c

index e1af6fde9a855a41d72f3d3f30e310689699a272..8b9b21137a8e4064a3677c90d3ed4849d0fb798c 100644 (file)
@@ -474,7 +474,7 @@ int vtysh_mark_file(const char *filename)
        }
 
        vty = vty_new();
-       vty->fd = 0; /* stdout */
+       vty->wfd = STDERR_FILENO;
        vty->type = VTY_TERM;
        vty->node = CONFIG_NODE;