From 05feefe0fb049bb0f7c59584058ee0350462920c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Mar 2011 20:01:53 +0100 Subject: dbus: properly generate UnknownInterface, UnknownProperty and PropertyReadOnly errors --- src/dbus-path.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/dbus-path.c') diff --git a/src/dbus-path.c b/src/dbus-path.c index 6155792d0d..cb1d4f09cb 100644 --- a/src/dbus-path.c +++ b/src/dbus-path.c @@ -41,6 +41,10 @@ BUS_INTROSPECTABLE_INTERFACE \ "\n" +#define INTERFACES_LIST \ + BUS_UNIT_INTERFACES_LIST \ + "org.freedesktop.systemd1.Path\0" + const char bus_path_interface[] _introspect_("Path") = BUS_PATH_INTERFACE; static int bus_path_append_paths(Manager *m, DBusMessageIter *i, const char *property, void *data) { @@ -94,5 +98,5 @@ DBusHandlerResult bus_path_message_handler(Unit *u, DBusConnection *c, DBusMessa { NULL, NULL, NULL, NULL, NULL } }; - return bus_default_message_handler(u->meta.manager, c, message, INTROSPECTION, properties); + return bus_default_message_handler(u->meta.manager, c, message, INTROSPECTION, INTERFACES_LIST, properties); } -- cgit v1.2.3-54-g00ecf