sd-bus: destination-matches cannot match NameOwnerChanged
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 16 Jul 2015 12:35:15 +0000 (14:35 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 16 Jul 2015 13:01:52 +0000 (15:01 +0200)
commit1af5f746d569f013595bb16ca113741ee306f04a
tree1d2b7f24f9cd9c8819d6dfbf7959d89049206be2
parent4f1d774135ae8c6fedb3a9dee45efe1fb42ac389
sd-bus: destination-matches cannot match NameOwnerChanged

Make sure we don't install NameOwnerChanged matches if the caller passed
a destination='' match (except if it is the broadcast address). Per spec,
all NameOwnerChanged signals are broadcasts.

Only the NameLost/NameAcquired signals are unicasts, but those are never
received through sd-bus. Instead, the bus-proxy synthesizes them and it
already installs proper matches for them.
src/libsystemd/sd-bus/bus-control.c