From 8c9c8e304ef3f62769aa72a40b60ba6208760b72 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Fri, 11 Oct 2024 15:29:00 +0200 Subject: [PATCH] shared/bus-util: re-break comment, insert missing newline before case Follow-up for a178ffdfcd9d25886a6e563a0fbd9929852e85c4 --- src/shared/bus-util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index a196ba47f64..6ea046ee6d4 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -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(); } -- 2.47.3