[systemd-commits] src/libsystemd-bus
Kay Sievers
kay at kemper.freedesktop.org
Sat Jan 4 23:34:44 PST 2014
src/libsystemd-bus/bus-util.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3f78871b03723e3a5334a9529d92264f2be52d87
Author: Mantas MikulÄnas <grawity at gmail.com>
Date: Sun Jan 5 01:57:11 2014 +0200
bus: open user, not system, bus in bus_open_user_systemd()
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)
More information about the systemd-commits
mailing list