chiark / gitweb /
sd-bus: properly match ID changes
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 16 Jul 2015 12:37:08 +0000 (14:37 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:06:20 +0000 (10:06 +0100)
commit2f92bdb77d4bcae53737f0e89bbc908556836a7d
treec688b7f886972fe314f3dfb0934fdc53c74778f0
parent628a60d53c9d0795d94bdca532dc47771c33bff8
sd-bus: properly match ID changes

If the caller does not specify arg1 for NameOwnerChanged matches, we
really must take the ID from arg2 or arg3, if provided. They are
guaranteed to be identical to arg1 if either is supplied, but there is no
strict requiredment that arg1 is supplied. Hence, make sure to always
take the more restrictive match. Otherwise, we install rather wide
matches without anyone requiring them.
src/libelogind/sd-bus/bus-control.c