Merge branch 'fixes/command'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2016-12-08 15:07:24 +01:00
commit 04cb240868
2 changed files with 2 additions and 3 deletions

View File

@ -1329,9 +1329,8 @@ DEFUN (config_write,
struct vty *file_vty;
struct stat conf_stat;
// if command was 'write terminal', 'write memory' or 'show running-config'
// if command was 'write terminal' or 'show running-config'
if (argc == 2 && (!strcmp(argv[idx_type]->text, "terminal") ||
!strcmp(argv[idx_type]->text, "memory") ||
!strcmp(argv[0]->text, "show")))
{
if (vty->type == VTY_SHELL_SERV)

View File

@ -2788,7 +2788,7 @@ DEFUN (no_ipv6_route_flags,
int idx_ipv6_prefixlen = 3;
int idx_ipv6_ifname = 4;
int idx_reject_blackhole = 5;
int idx_curr = 5;
int idx_curr = 6;
char *tag, *distance, *vrf;
tag = distance = vrf = NULL;