chiark / gitweb /
libsystemd-bus: match on any connection ID unless specified
authorDaniel Mack <zonque@gmail.com>
Fri, 20 Dec 2013 22:12:42 +0000 (23:12 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 20 Dec 2013 22:12:42 +0000 (23:12 +0100)
src/libsystemd-bus/bus-control.c

index 67b06d3..333968a 100644 (file)
@@ -715,7 +715,7 @@ static int add_name_change_match(sd_bus *bus,
                                  const char *old_owner,
                                  const char *new_owner) {
 
-        uint64_t name_id = 0, old_owner_id = 0, new_owner_id = 0;
+        uint64_t name_id = KDBUS_MATCH_ID_ANY, old_owner_id = 0, new_owner_id = 0;
         int is_name_id = -1, r;
         struct kdbus_item *item;