summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-07-06 17:54:40 +0200
committerKay Sievers <kay@vrfy.org>2015-07-06 17:58:50 +0200
commit619b80a1c7caeb1d910d8d68a3700b8bdfc29a90 (patch)
tree76bb0f42c3ec1944d227c6dde5f9ce94ec292c89
parent0c60116171dbb68b39eade00f2a3a606ab9f53d8 (diff)
bus-proxyd: fix log message and explain dbus-1 compat matches
-rw-r--r--src/bus-proxyd/proxy.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bus-proxyd/proxy.c b/src/bus-proxyd/proxy.c
index f9308f25c3..189ee969c7 100644
--- a/src/bus-proxyd/proxy.c
+++ b/src/bus-proxyd/proxy.c
@@ -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;
}