]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/bus-util: re-break comment, insert missing newline before case
authorMike Yuan <me@yhndnzj.com>
Fri, 11 Oct 2024 13:29:00 +0000 (15:29 +0200)
committerMike Yuan <me@yhndnzj.com>
Fri, 11 Oct 2024 13:30:04 +0000 (15:30 +0200)
Follow-up for a178ffdfcd9d25886a6e563a0fbd9929852e85c4

src/shared/bus-util.c

index a196ba47f647c4187503837ddb9ec1e1ad36671d..6ea046ee6d43504e04baa30d0569269dddf683f8 100644 (file)
@@ -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();
                 }