From: Lennart Poettering Date: Wed, 12 Mar 2025 17:19:34 +0000 (+0100) Subject: analyze: don't connect to bus from analyze test run X-Git-Tag: v258-rc1~1082^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71a737d68db8c8a72fdc076d0ec87f43d3ecd7a1;p=thirdparty%2Fsystemd.git analyze: don't connect to bus from analyze test run This thing should not be "live", hence don't try to connect to the bus, or bind the private bus socket. Fixes: #36540 --- diff --git a/src/core/manager.c b/src/core/manager.c index 26e275f7a08..cf96a61dbb4 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1968,6 +1968,9 @@ static bool manager_dbus_is_running(Manager *m, bool deserialized) { static void manager_setup_bus(Manager *m) { assert(m); + if (MANAGER_IS_TEST_RUN(m)) + return; + /* Let's set up our private bus connection now, unconditionally */ (void) bus_init_private(m);