summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-01-16 23:31:54 +0000
committerhasso <hasso>2005-01-16 23:31:54 +0000
commitdab45eeed68d0a63c4843699a86bdf10e2ec9db4 (patch)
tree9c5da5cce377aa38c60f3f5f62632e7b35bd40ec /lib/vty.c
parentd71a3efe0bd0d9fb9b17b795f8e59bdd97c4406a (diff)
downloadquagga-dab45eeed68d0a63c4843699a86bdf10e2ec9db4.tar.bz2
quagga-dab45eeed68d0a63c4843699a86bdf10e2ec9db4.tar.xz
* 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]
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c2
1 files changed, 1 insertions, 1 deletions
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)