]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc: Format --handshakefd for controller cmd fully
authorMichal Privoznik <mprivozn@redhat.com>
Sat, 17 Apr 2021 07:59:51 +0000 (09:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Apr 2021 09:21:40 +0000 (11:21 +0200)
The command line argument is called --hanshakefd (check out
lxc_controller.c:main()). But the command line builder puts only
--handshake. This works, because there is no other argument
sharing the prefix.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/lxc/lxc_process.c

index b2a7f105a92468309c7d54dd1877070d7f54678a..ac635efe7a3194959323af330a9e1b714ec38b8e 100644 (file)
@@ -1002,7 +1002,7 @@ virLXCProcessBuildControllerCmd(virLXCDriver *driver,
     virCommandAddArgPair(cmd, "--security",
                          virSecurityManagerGetModel(driver->securityManager));
 
-    virCommandAddArg(cmd, "--handshake");
+    virCommandAddArg(cmd, "--handshakefd");
     virCommandAddArgFormat(cmd, "%d", handshakefd);
 
     for (i = 0; veths && veths[i]; i++)