[systemd-commits] src/machine
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Jul 3 11:22:34 PDT 2014
src/machine/machined-dbus.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8d90c8a8d6867ffcfb61a11b73205cd7b1a72f3a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 3 20:19:58 2014 +0200
machine: properly distuingish created and registered machines
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c
index ffcd7c0..a041444 100644
--- a/src/machine/machined-dbus.c
+++ b/src/machine/machined-dbus.c
@@ -223,7 +223,6 @@ static int method_create_or_register_machine(Manager *manager, sd_bus_message *m
m->leader = leader;
m->class = c;
m->id = id;
- m->registered = true;
if (!isempty(service)) {
m->service = strdup(service);
@@ -291,6 +290,8 @@ static int method_register_machine(sd_bus *bus, sd_bus_message *message, void *u
goto fail;
}
+ m->registered = true;
+
r = machine_start(m, NULL, error);
if (r < 0)
goto fail;
More information about the systemd-commits
mailing list