summaryrefslogtreecommitdiff
path: root/src/dbus-manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-09 20:01:53 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-09 20:01:53 +0100
commit05feefe0fb049bb0f7c59584058ee0350462920c (patch)
tree7408358006c490ae4a48ae39c012591495ac99c9 /src/dbus-manager.c
parent34df5a34e1d0ac4bba453fb5f52f18a2f5f260f9 (diff)
dbus: properly generate UnknownInterface, UnknownProperty and PropertyReadOnly errors
Diffstat (limited to 'src/dbus-manager.c')
-rw-r--r--src/dbus-manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dbus-manager.c b/src/dbus-manager.c
index 7d4703b88b..2edbc37b5e 100644
--- a/src/dbus-manager.c
+++ b/src/dbus-manager.c
@@ -206,6 +206,10 @@
#define INTROSPECTION_END \
"</node>\n"
+#define INTERFACES_LIST \
+ BUS_GENERIC_INTERFACES_LIST \
+ "org.freedesktop.systemd1.Manager\0"
+
const char bus_manager_interface[] _introspect_("Manager") = BUS_MANAGER_INTERFACE;
static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_manager_append_running_as, manager_running_as, ManagerRunningAs);
@@ -1021,7 +1025,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
m->environment = e;
} else
- return bus_default_message_handler(m, connection, message, NULL, properties);
+ return bus_default_message_handler(m, connection, message, NULL, INTERFACES_LIST, properties);
if (job_type != _JOB_TYPE_INVALID) {
const char *name, *smode, *old_name = NULL;