mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
shared/bus-util: re-break comment, insert missing newline before case
Follow-up for a178ffdfcd
This commit is contained in:
@@ -516,12 +516,13 @@ int bus_connect_transport_systemd(
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EHOSTDOWN),
|
||||
"System has not been booted with systemd as init system (PID 1). Can't operate.");
|
||||
|
||||
/* If we are root then let's talk directly to the system instance, instead of
|
||||
* going via the bus. */
|
||||
if (geteuid() == 0)
|
||||
/* If we are root then let's talk directly to the system
|
||||
* instance, instead of going via the bus. */
|
||||
return bus_connect_system_systemd(ret_bus);
|
||||
|
||||
return sd_bus_default_system(ret_bus);
|
||||
|
||||
default:
|
||||
assert_not_reached();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user