naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
923a60
From e02e6845a4c4abe7d79df4305810703af5e6ec21 Mon Sep 17 00:00:00 2001
923a60
From: Benjamin Franzke <benjaminfranzke@googlemail.com>
923a60
Date: Thu, 19 Feb 2015 20:47:28 +0100
923a60
Subject: [PATCH] machined: use x-machine-unix prefix for the container bus on
923a60
 dbus1
923a60
923a60
This fixes "machinectl login" on systems configured with --disable-kdbus.
923a60
923a60
The error was:
923a60
machinectl login foo
923a60
Failed to get machine PTY: Input/output error
923a60
923a60
(cherry picked from commit f2273101c21bc59a390379e182e53cd4f07a7e71)
923a60
---
923a60
 src/machine/machine-dbus.c | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
923a60
index b46f0a8dac..b0f0f66e09 100644
923a60
--- a/src/machine/machine-dbus.c
923a60
+++ b/src/machine/machine-dbus.c
923a60
@@ -477,7 +477,7 @@ int bus_machine_method_open_login(sd_bus *bus, sd_bus_message *message, void *us
923a60
 #ifdef ENABLE_KDBUS
923a60
         asprintf(&container_bus->address, "x-machine-kernel:pid=" PID_FMT ";x-machine-unix:pid=" PID_FMT, m->leader, m->leader);
923a60
 #else
923a60
-        asprintf(&container_bus->address, "x-machine-kernel:pid=" PID_FMT, m->leader);
923a60
+        asprintf(&container_bus->address, "x-machine-unix:pid=" PID_FMT, m->leader);
923a60
 #endif
923a60
         if (!container_bus->address)
923a60
                 return -ENOMEM;