We have various callsites that explicitly need the manager bus and
won't work with the system bus, like daemon-reexec and friends which
can't properly wait until the operation has finished unless using the
manager bus.
If we silently fall back to the system bus for these operations, we
can end up with rather hard to debug issues so let's remove the fallback
as it was added back in 2013 in
a6aa89122d2fa5e811a72200773068c13bfffea2
without a clear explanation of why it was needed (I expect as a fallback
if kdbus wasn't available but that's not a thing anymore these days).
r = sd_bus_start(bus);
if (r < 0)
- return sd_bus_default_system(ret_bus);
+ return r;
r = bus_check_peercred(bus);
if (r < 0)
e = secure_getenv("XDG_RUNTIME_DIR");
if (!e)
- return sd_bus_default_user(ret_bus);
+ return -ENXIO;
ee = bus_address_escape(e);
if (!ee)
r = sd_bus_start(bus);
if (r < 0)
- return sd_bus_default_user(ret_bus);
+ return r;
r = bus_check_peercred(bus);
if (r < 0)