summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-util.c
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2014-01-05 01:57:11 +0200
committerKay Sievers <kay@vrfy.org>2014-01-05 11:32:51 +0400
commit3f78871b03723e3a5334a9529d92264f2be52d87 (patch)
tree754c4882a06e561a72f29a77b949d68cb9a7096a /src/libsystemd-bus/bus-util.c
parentb4696bce07e0a596accf097b7bff84bf30198f25 (diff)
bus: open user, not system, bus in bus_open_user_systemd()
Diffstat (limited to 'src/libsystemd-bus/bus-util.c')
-rw-r--r--src/libsystemd-bus/bus-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-util.c b/src/libsystemd-bus/bus-util.c
index 425f63a0fc..a468bcad6b 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)