From 6a65f4802e95ba442c520f8e225da837e0a9f73b Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 10 Oct 2003 02:42:21 +0000 Subject: 2003-10-09 Havoc Pennington Make matching rules theoretically work (add parser). * bus/bus.c (bus_context_check_security_policy): fix up to handle the case where destination is explicitly specified as bus driver and someone else is eavesdropping. * bus/policy.c (bus_client_policy_check_can_receive): fix up definition of eavesdropping and assertion * tools/dbus-send.c (main): use dbus_message_type_from_string * bus/signals.c (bus_match_rule_parse): implement * dbus/dbus-message.c (dbus_message_type_from_string): new * dbus/dbus-errors.h (DBUS_ERROR_MATCH_RULE_INVALID): add --- bus/dispatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bus/dispatch.c') diff --git a/bus/dispatch.c b/bus/dispatch.c index 606c68ef..e238cb4c 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -920,7 +920,8 @@ check_add_match_all (BusContext *context, if (message == NULL) return TRUE; - if (!dbus_message_append_args (message, DBUS_TYPE_STRING, "", /* FIXME */ + /* empty string match rule matches everything */ + if (!dbus_message_append_args (message, DBUS_TYPE_STRING, "", DBUS_TYPE_INVALID)) { dbus_message_unref (message); -- cgit