mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:37:21 +00:00
Fix critical bugzilla #113. Make CMD_ERR_NOTHING_TODO nonfatal.
This commit is contained in:
parent
42d498658d
commit
ddd85ed1af
@ -1,3 +1,8 @@
|
||||
2004-10-13 Hasso Tepper <hasso at quagga.net>
|
||||
|
||||
* command.c: Make CMD_ERR_NOTHING_TODO nonfatal if reading
|
||||
configuration from file. Fixes critical bugzilla #113.
|
||||
|
||||
2004-10-13 Paul Jakma <paul@dishone.st>
|
||||
|
||||
* (global) more const'ification.
|
||||
|
@ -2238,15 +2238,16 @@ config_from_file (struct vty *vty, FILE *fp)
|
||||
|
||||
/* Try again with setting node to CONFIG_NODE */
|
||||
while (ret != CMD_SUCCESS && ret != CMD_WARNING
|
||||
&& vty->node != CONFIG_NODE)
|
||||
{
|
||||
&& ret != CMD_ERR_NOTHING_TODO && vty->node != CONFIG_NODE)
|
||||
{
|
||||
vty->node = node_parent(vty->node);
|
||||
ret = cmd_execute_command_strict (vline, vty, NULL);
|
||||
}
|
||||
ret = cmd_execute_command_strict (vline, vty, NULL);
|
||||
}
|
||||
|
||||
cmd_free_strvec (vline);
|
||||
|
||||
if (ret != CMD_SUCCESS && ret != CMD_WARNING)
|
||||
if (ret != CMD_SUCCESS && ret != CMD_WARNING
|
||||
&& ret != CMD_ERR_NOTHING_TODO)
|
||||
return ret;
|
||||
}
|
||||
return CMD_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user