mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:14:35 +00:00
Merge pull request #1833 from opensourcerouting/fix-vtysh-output-init
vtysh: initialize vty structure correctly for output to terminal
This commit is contained in:
commit
ce08776d95
@ -539,7 +539,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;
|
||||
|
||||
|
@ -398,7 +398,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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user