From 74d57f5a1ff2a42157b4fcfd60e638df6fe18da6 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 5 Dec 2016 19:46:09 +0100 Subject: [PATCH] lib: "write mem" should write to persistent configuration Signed-off-by: Christian Franke --- lib/command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/command.c b/lib/command.c index 3c429ce1a7..39ac54d61e 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1319,9 +1319,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) -- 2.39.5