chiark / gitweb /
sd-bus: include queried path in GetManagedObjects
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 9 Jul 2015 11:27:57 +0000 (13:27 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:06:01 +0000 (10:06 +0100)
commitab76853a4ca68ec371c971dfe2cc68f19fe07659
treeef9c4345c7ac04b655e3aa966adaab95ab57720f
parent8e2ad2f59c4d49d6fe22e84c9408d4a17465bc00
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/libelogind/sd-bus/bus-objects.c
src/libelogind/sd-bus/test-bus-objects.c