diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-15 17:06:27 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-15 17:06:27 +0000 | 
| commit | e1a0779f9e09f4620fdbb977f9e0a67caafdc5f3 (patch) | |
| tree | 70b40c3b6d3bb50bb909b3269e8f55719e711bd0 /hcid/dbus-security.c | |
| parent | e8b9bf6bfc52751b75ade32609817ab859a3e889 (diff) | |
Preliminary support for executing a service when Start is called
Diffstat (limited to 'hcid/dbus-security.c')
| -rw-r--r-- | hcid/dbus-security.c | 4 | 
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)  | 
