nspawn: always use default bus
authorLennart Poettering <lennart@poettering.net>
Wed, 5 Feb 2014 22:06:34 +0000 (23:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Feb 2014 22:06:34 +0000 (23:06 +0100)
src/nspawn/nspawn.c

index cd63bf6..ed13e81 100644 (file)
@@ -1025,7 +1025,7 @@ static int register_machine(pid_t pid) {
         _cleanup_bus_unref_ sd_bus *bus = NULL;
         int r;
 
-        r = sd_bus_open_system(&bus);
+        r = sd_bus_default_system(&bus);
         if (r < 0) {
                 log_error("Failed to open system bus: %s", strerror(-r));
                 return r;