Fix dbus-monitor using eavesdrop=true when no filters are passed
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>
Tue, 12 Jul 2011 14:56:43 +0000 (15:56 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 12 Jul 2011 17:36:40 +0000 (18:36 +0100)
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/dbus-monitor.c

index ba9f9cc19298c620ec4dbd4c81095cfa5a6f942e..e187ee4d0fcf2a29a28d88983518458174591657 100644 (file)
@@ -388,22 +388,22 @@ main (int argc, char *argv[])
   else
     {
       dbus_bus_add_match (connection,
-                         "type='signal'",
+                         EAVESDROPPING_RULE ",type='signal'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;
       dbus_bus_add_match (connection,
-                         "type='method_call'",
+                         EAVESDROPPING_RULE ",type='method_call'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;
       dbus_bus_add_match (connection,
-                         "type='method_return'",
+                         EAVESDROPPING_RULE ",type='method_return'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;
       dbus_bus_add_match (connection,
-                         "type='error'",
+                         EAVESDROPPING_RULE ",type='error'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;