summaryrefslogtreecommitdiffstats
path: root/bus/dispatch.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-10-10 02:42:21 +0000
committerHavoc Pennington <hp@redhat.com>2003-10-10 02:42:21 +0000
commit6a65f4802e95ba442c520f8e225da837e0a9f73b (patch)
tree734e69da90869b3788d381e75911d720ad8cfd0f /bus/dispatch.c
parent79d03f94fec278d270a33792aeffb33ba239bb01 (diff)
2003-10-09 Havoc Pennington <hp@redhat.com>
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
Diffstat (limited to 'bus/dispatch.c')
-rw-r--r--bus/dispatch.c3
1 files changed, 2 insertions, 1 deletions
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);