From 51972482f77b68ef494c8b9591b125460e7984b9 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Fri, 5 Mar 2021 12:10:29 +0000 Subject: [PATCH] tools/xenstored: liveupdate: Increase the maximum number of parameters The longest possible command line for LiveUpdate is: liveupdate -s -t -F This is 5 parameters. However, the maximum is currently specified to 4. This means the some of the parameters will get ignored. Update the field max_pars to 5 so and admin can specify the timeout and force at the same time. Signed-off-by: Julien Grall Reviewed-by: Juergen Gross Release-Acked-by: Ian Jackson --- tools/xenstore/xenstored_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenstore/xenstored_control.c b/tools/xenstore/xenstored_control.c index a1652219b2..8e470f2b20 100644 --- a/tools/xenstore/xenstored_control.c +++ b/tools/xenstore/xenstored_control.c @@ -768,7 +768,7 @@ static struct cmd_s cmds[] = { */ { "live-update", do_control_lu, "[-c ] [-F] [-t ] \n" - " Default timeout is 60 seconds.", 4 }, + " Default timeout is 60 seconds.", 5 }, #endif #ifdef __MINIOS__ { "memreport", do_control_memreport, "" }, -- 2.39.5