[avahi] [PATCH 1/1] match all Avahi signals

Christian Hesse list at eworm.de
Thu Jun 25 14:58:35 PDT 2015


From: Christian Hesse <mail at eworm.de>

Avahi used to set matches that were too restrictive. This worked with
legacy dbus, however.

With kdbus libavahi-client breaks: The signals are not forwarded due to
missing match. So match everything Avahi tells us.

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 avahi-client/client.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/avahi-client/client.c b/avahi-client/client.c
index 70cc35d..7da180a 100644
--- a/avahi-client/client.c
+++ b/avahi-client/client.c
@@ -533,9 +533,7 @@ AvahiClient *avahi_client_new(const AvahiPoll *poll_api, AvahiClientFlags flags,
     dbus_bus_add_match(
         client->bus,
         "type='signal', "
-        "interface='" AVAHI_DBUS_INTERFACE_SERVER "', "
-        "sender='" AVAHI_DBUS_NAME "', "
-        "path='" AVAHI_DBUS_PATH_SERVER "'",
+        "sender='" AVAHI_DBUS_NAME "'",
         &error);
 
     if (dbus_error_is_set(&error))
-- 
2.4.4



More information about the avahi mailing list