summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-security.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-15 17:06:27 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-15 17:06:27 +0000
commite1a0779f9e09f4620fdbb977f9e0a67caafdc5f3 (patch)
tree70b40c3b6d3bb50bb909b3269e8f55719e711bd0 /hcid/dbus-security.c
parente8b9bf6bfc52751b75ade32609817ab859a3e889 (diff)
Preliminary support for executing a service when Start is called
Diffstat (limited to 'hcid/dbus-security.c')
-rw-r--r--hcid/dbus-security.c4
1 files changed, 2 insertions, 2 deletions
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)