diff options
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r-- | src/nspawn/nspawn.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 5d49e05064..74b15dcb44 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -30,6 +30,7 @@ #include "btrfs-util.h" #include "build.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-util.h" #include "cap-list.h" #include "capability-util.h" @@ -2092,13 +2093,7 @@ static int resolved_listening(void) { if (r == 0) return 0; - r = sd_bus_get_property_string(bus, - "org.freedesktop.resolve1", - "/org/freedesktop/resolve1", - "org.freedesktop.resolve1.Manager", - "DNSStubListener", - &error, - &dns_stub_listener_mode); + r = bus_get_property_string(bus, bus_resolve_mgr, "DNSStubListener", &error, &dns_stub_listener_mode); if (r < 0) return log_debug_errno(r, "Failed to query DNSStubListener property: %s", bus_error_message(&error, r)); |