1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-30 10:50:15 +03:00

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
This commit is contained in:
Lennart Poettering 2025-03-12 18:19:34 +01:00
parent e75fbee624
commit 71a737d68d

View File

@ -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);