summaryrefslogtreecommitdiffstats
path: root/lib/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c
index 56fedf091..2c022a0db 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1534,8 +1534,8 @@ DEFUN (config_write,
struct stat conf_stat;
// if command was 'write terminal' or 'show running-config'
- if (argc == 2 && (!strcmp(argv[idx_type]->text, "terminal") ||
- !strcmp(argv[0]->text, "show")))
+ if (argc == 2 && (strmatch(argv[idx_type]->text, "terminal") ||
+ strmatch(argv[0]->text, "show")))
{
vty_write_config (vty);
return CMD_SUCCESS;