From: Christian Franke Date: Mon, 5 Mar 2018 15:01:15 +0000 (+0100) Subject: vtysh: initialize vty for mark_file correctly X-Git-Tag: frr-3.0.4~5^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=03139b4494e3d8237969b79b050e9f585f2814d3;p=matthieu%2Ffrr.git vtysh: initialize vty for mark_file correctly Command output should go to stderr, to not clutter the config output on stdout. Signed-off-by: Christian Franke --- diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index e1af6fde9a..8b9b21137a 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -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;