]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Require option name for '--pass-fd' argument of 'qemu-monitor-command'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 1 Mar 2022 13:12:00 +0000 (14:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Mar 2022 13:29:39 +0000 (14:29 +0100)
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@redhat.com>
tools/virsh-domain.c

index 2e21219d635aa1edab3da75c18ef31ebb0c82c56..9b1b14cdc2f57c74353709bbae6e7db9f8088a64 100644 (file)
@@ -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")
     },