From 9550ba808ba01292bdc5884731c8a1ef4a643132 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Mon, 8 May 2023 14:34:35 +0200 Subject: [PATCH] cli show for mtpoint: increased range for arg check --- apps/cli/cli_show.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cli/cli_show.c b/apps/cli/cli_show.c index f397df07..59b660ed 100644 --- a/apps/cli/cli_show.c +++ b/apps/cli/cli_show.c @@ -529,6 +529,7 @@ cli_show_common(clicon_handle h, goto done; break; case FORMAT_CLI: + /* If xp is not bound, cli prints are skipped */ if (clixon_cli2file(h, stdout, xp, prepend, cligen_output, skiptop) < 0) /* cli syntax */ goto done; break; @@ -896,7 +897,7 @@ cli_show_auto(clicon_handle h, char *str; char *mtpoint = NULL; - if (cvec_len(argv) < 2 || cvec_len(argv) > 7){ + if (cvec_len(argv) < 2 || cvec_len(argv) > 8){ clicon_err(OE_PLUGIN, EINVAL, "Received %d arguments. Expected:: * [ ]", cvec_len(argv)); goto done; }