From: Peter Krempa Date: Tue, 1 Mar 2022 13:12:00 +0000 (+0100) Subject: virsh: Require option name for '--pass-fd' argument of 'qemu-monitor-command' X-Git-Tag: v8.2.0-rc1~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44ea7749f82c093a3387b94d1e40a5fe48609244;p=thirdparty%2Flibvirt.git virsh: Require option name for '--pass-fd' argument of 'qemu-monitor-command' Require the option name for this argument as otherwise a part of the 'cmd' argument will be claimed. Fixes: 43edde82afb8eb8b808fd985e01898a543a2ffbc Signed-off-by: Peter Krempa --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 2e21219d63..9b1b14cdc2 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -9723,6 +9723,7 @@ static const vshCmdOptDef opts_qemu_monitor_command[] = { }, {.name = "pass-fds", .type = VSH_OT_STRING, + .flags = VSH_OFLAG_REQ_OPT, .completer = virshCompleteEmpty, .help = N_("pass file descriptors N,M,... along with the command") },