]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: Fix cid passed to machine_add_from_params()
authorDaan De Meyer <daan@amutable.com>
Thu, 19 Feb 2026 09:16:37 +0000 (10:16 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Feb 2026 14:17:10 +0000 (15:17 +0100)
The default value is VMADDR_CID_ANY, not zero.

src/machine/machined-dbus.c

index f2f6a300e3c28457d2de3414a59a163ae81bd158..0130fbf77988fc9f9efe73a93b12fee12656023a 100644 (file)
@@ -480,7 +480,7 @@ static int method_create_or_register_machine(
                         root_directory,
                         netif,
                         n_netif,
-                        /* cid= */ 0,
+                        /* cid= */ VMADDR_CID_ANY,
                         /* ssh_address= */ NULL,
                         /* ssh_private_key_path= */ NULL,
                         ret,