[test-fix PATCH] virsh: Require option name for '--pass-fd' argument of 'qemu-monitor-command'

Peter Krempa pkrempa at redhat.com
Tue Mar 1 13:30:40 UTC 2022


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 <pkrempa at redhat.com>
---

Pushed as a build fix.

 tools/virsh-domain.c | 1 +
 1 file changed, 1 insertion(+)

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")
     },
-- 
2.35.1




More information about the libvir-list mailing list