]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-proxyd: fix log message and explain dbus-1 compat matches
authorKay Sievers <kay@vrfy.org>
Mon, 6 Jul 2015 15:54:40 +0000 (17:54 +0200)
committerKay Sievers <kay@vrfy.org>
Mon, 6 Jul 2015 15:58:50 +0000 (17:58 +0200)
src/bus-proxyd/proxy.c

index f9308f25c346b9568adec7c1eba2f1819ed7ba66..189ee969c762ba1de609af0945d88afcfc0ec568 100644 (file)
@@ -144,6 +144,10 @@ static int proxy_create_local(Proxy *p, int in_fd, int out_fd, bool negotiate_fd
         return 0;
 }
 
+/*
+ * dbus-1 clients receive NameOwnerChanged and directed signals without
+ * subscribing to them; install the matches to receive them on kdbus.
+ */
 static int proxy_prepare_matches(Proxy *p) {
         _cleanup_free_ char *match = NULL;
         const char *unique;
@@ -200,7 +204,8 @@ static int proxy_prepare_matches(Proxy *p) {
 
         r = sd_bus_add_match(p->destination_bus, NULL, match, NULL, NULL);
         if (r < 0)
-                log_error_errno(r, "Failed to add match for NameAcquired: %m");
+                log_error_errno(r, "Failed to add match for directed signals: %m");
+                /* FIXME: temporarily ignore error to support older kdbus versions */
 
         return 0;
 }