[system-tools-backends-clone] Fix wrong int size when getting UID in dispatch_self_config()
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [system-tools-backends-clone] Fix wrong int size when getting UID in dispatch_self_config()
- Date: Sat, 13 Mar 2010 10:02:26 +0000 (UTC)
commit 2465d52331c70736db1c5fadbc98efae75f7d0ae
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Mar 13 10:57:53 2010 +0100
Fix wrong int size when getting UID in dispatch_self_config()
dbus_message_get_args() with type DBUS_TYPE_UINT32 requires passing a reference to a guint32. The gulong we were using was 64 bits long on amd64 platforms, meaning the higher half of the UID was garbage. This fixes a bug preventing people from changing their own settings, which occurred because the passed UID was rejected.
dispatcher/dispatcher.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/dispatcher/dispatcher.c b/dispatcher/dispatcher.c
index 89f094e..6047734 100644
--- a/dispatcher/dispatcher.c
+++ b/dispatcher/dispatcher.c
@@ -535,7 +535,8 @@ dispatch_self_config (StbDispatcher *dispatcher,
{
StbDispatcherPrivate *priv;
const gchar *sender;
- gulong uid, message_uid;
+ gulong uid;
+ guint32 message_uid;
priv = dispatcher->_priv;
sender = dbus_message_get_sender (message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]