From 87d683b071dc7abfb30b666960ec480e64e19ce4 Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 16 Jan 2005 23:31:54 +0000 Subject: * command.[ch], vty.c: cmd_execute_command() function must not attempt to walk up in the node tree if called from vtysh. Different daemons might have commands with same syntax in different nodes (for example "router-id x.x.x.x" commands in zebra/ospfd/ospf6d daemons). * vtysh.c: Reflect changes in lib. cmd_execute_command() should know now that it's called from vtysh and must not attempt to walk up in the node tree. [pullup candidate] --- lib/vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vty.c') diff --git a/lib/vty.c b/lib/vty.c index 25366fb4..42487330 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -361,7 +361,7 @@ vty_command (struct vty *vty, char *buf) if (vline == NULL) return CMD_SUCCESS; - ret = cmd_execute_command (vline, vty, NULL); + ret = cmd_execute_command (vline, vty, NULL, 0); if (ret != CMD_SUCCESS) switch (ret) -- cgit v1.2.3