bus: open user, not system, bus in bus_open_user_systemd()

This commit is contained in:
Mantas Mikulėnas 2014-01-05 01:57:11 +02:00 committed by Kay Sievers
parent b4696bce07
commit 3f78871b03

View File

@ -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)