mirror of
https://github.com/systemd/systemd.git
synced 2024-12-24 17:43:40 +08:00
bus: open user, not system, bus in bus_open_user_systemd()
This commit is contained in:
parent
b4696bce07
commit
3f78871b03
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user