sd-bus: include queried path in GetManagedObjects
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 9 Jul 2015 11:27:57 +0000 (13:27 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 9 Jul 2015 11:30:16 +0000 (13:30 +0200)
commit92d16a53e385781a55d9231d9f8f89c1747ab0e4
treea303674fb19ba1bc5bc6a6fe580e4f521762c4e4
parenta0f7095171f03517bb44f91c67098ddd53537b54
sd-bus: include queried path in GetManagedObjects

If GetManagedObjects is called on /foo/bar, then it should also include
the object /foo/bar, if it exists. Right now, we only include objects
underneath /foo/bar/.

This follows the behavior of existing dbus implementations.

Obsoletes #527 and fixes #525. Reported by: Nathaniel McCallum
src/libsystemd/sd-bus/bus-objects.c
src/libsystemd/sd-bus/test-bus-objects.c