From e1a0779f9e09f4620fdbb977f9e0a67caafdc5f3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 15 Jan 2007 17:06:27 +0000 Subject: Preliminary support for executing a service when Start is called --- hcid/dbus-security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hcid/dbus-security.c') diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index 26372f7f..5e0fd6c9 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -792,7 +792,7 @@ static DBusHandlerResult authorize_service(DBusConnection *conn, if (!service) return error_service_does_not_exist(conn, msg); - if (strcmp(dbus_message_get_sender(msg), service->id)) + if (strcmp(dbus_message_get_sender(msg), service->bus_name)) return error_rejected(conn, msg); /* Check it is a trusted device */ @@ -870,7 +870,7 @@ static DBusHandlerResult cancel_authorization_process(DBusConnection *conn, if (!service) return error_service_does_not_exist(conn, msg); - if (strcmp(dbus_message_get_sender(msg), service->id)) + if (strcmp(dbus_message_get_sender(msg), service->bus_name)) return error_not_authorized(conn, msg); if (!default_auth_agent) -- cgit