[PATCH] lxc: Format --handshakefd for controller cmd fully

Michal Privoznik mprivozn at redhat.com
Mon Apr 19 07:34:16 UTC 2021


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 at redhat.com>
---
 src/lxc/lxc_process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c
index b2a7f105a9..ac635efe7a 100644
--- a/src/lxc/lxc_process.c
+++ b/src/lxc/lxc_process.c
@@ -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++)
-- 
2.26.3




More information about the libvir-list mailing list