From 03139b4494e3d8237969b79b050e9f585f2814d3 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 5 Mar 2018 16:01:15 +0100 Subject: [PATCH] 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 --- vtysh/vtysh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5