From 44316fef4d93b3d94cf45663ce35797d32acce71 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 11 Jan 2006 01:38:25 +0000 Subject: 2006-01-11 Erik Smit * 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. --- vtysh/vtysh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vtysh/vtysh.c') diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index fa48a44e..08ed7498 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); -- cgit v1.2.1