[systemd-devel] [PATCH] bus: open user, not system, bus in bus_open_user_systemd()

Mantas Mikulėnas grawity at gmail.com
Sat Jan 4 15:57:11 PST 2014


---
 src/libsystemd-bus/bus-util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libsystemd-bus/bus-util.c b/src/libsystemd-bus/bus-util.c
index 425f63a..a468bca 100644
--- a/src/libsystemd-bus/bus-util.c
+++ b/src/libsystemd-bus/bus-util.c
@@ -553,7 +553,7 @@ int bus_open_user_systemd(sd_bus **_bus) {
 
         e = secure_getenv("XDG_RUNTIME_DIR");
         if (!e)
-                return sd_bus_open_system(_bus);
+                return sd_bus_open_user(_bus);
 
         ee = bus_address_escape(e);
         if (!ee)
@@ -569,7 +569,7 @@ int bus_open_user_systemd(sd_bus **_bus) {
 
         r = sd_bus_start(bus);
         if (r < 0)
-                return sd_bus_open_system(_bus);
+                return sd_bus_open_user(_bus);
 
         r = bus_check_peercred(bus);
         if (r < 0)
-- 
1.8.5.1.277.g0e0d235



More information about the systemd-devel mailing list