From: Lennart Poettering Date: Wed, 20 May 2020 16:07:23 +0000 (+0200) Subject: bus-util: actually register the object manager X-Git-Tag: v246-rc1~305^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fcbf417b615539eec3e53444b964593d6415940;p=thirdparty%2Fsystemd.git bus-util: actually register the object manager --- diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index c7611a6e851..379aecf7307 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1591,6 +1591,12 @@ int bus_add_implementation(sd_bus *bus, const BusObjectImplementation *impl, voi impl->path); } + if (impl->manager) { + r = sd_bus_add_object_manager(bus, NULL, impl->path); + if (r < 0) + return log_error_errno(r, "Failed to add object manager for %s: %m", impl->path); + } + for (size_t i = 0; impl->children && impl->children[i]; i++) { r = bus_add_implementation(bus, impl->children[i], userdata); if (r < 0)