diff options
author | paul <paul> | 2006-01-11 02:38:25 +0100 |
---|---|---|
committer | paul <paul> | 2006-01-11 02:38:25 +0100 |
commit | 44316fef4d93b3d94cf45663ce35797d32acce71 (patch) | |
tree | 8dcbcf2065b35f40ac3044efdb20b26cc27388bc /vtysh | |
parent | [ospfd] Bug #234. Fix nbr_self reinitialisation after down/up. (diff) | |
download | frr-44316fef4d93b3d94cf45663ce35797d32acce71.tar.xz frr-44316fef4d93b3d94cf45663ce35797d32acce71.zip |
2006-01-11 Erik Smit <zoiah@zoiah.net>
* vtysh.c: (vtysh_config_from_file) fix regression from
a previous cleanup, vtysh_client.flags and cmd->daemon are
bitwise flags, bitwise & was meant to be used. Fixes breakage
of integrated config file reading.
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/ChangeLog | 7 | ||||
-rw-r--r-- | vtysh/vtysh.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog index 9e4e40ad5..11192c1f7 100644 --- a/vtysh/ChangeLog +++ b/vtysh/ChangeLog @@ -1,3 +1,10 @@ +2006-01-11 Erik Smit <zoiah@zoiah.net> + + * vtysh.c: (vtysh_config_from_file) fix regression from + a previous cleanup, vtysh_client.flags and cmd->daemon are + bitwise flags, bitwise & was meant to be used. Fixes breakage + of integrated config file reading. + 2005-09-15 Hasso Tepper <hasso at quagga.net> * vtysh.c: Fix warning by casting rl_bind_key 2. argument correctly. diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index fa48a44ea..08ed74987 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -523,7 +523,7 @@ vtysh_config_from_file (struct vty *vty, FILE *fp) for (i = 0; i < VTYSH_INDEX_MAX; i++) { - if (cmd->daemon && vtysh_client[i].flag) + if (cmd->daemon & vtysh_client[i].flag) { cmd_stat = vtysh_client_execute (&vtysh_client[i], vty->buf, stdout); |