diff options
author | root <root@rshg054.dnsready.net> | 2012-12-02 01:27:08 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-02 01:27:08 -0800 |
commit | 98ba4ae196183c2d9b1cc2d61cf1ee82302863e3 (patch) | |
tree | 77f7f23c59f50a1901586a8c3818f53c6a67837b /extra/accountsservice/32bit-crash.patch | |
parent | c31ace4c6175db330d7e4aac1e7388fe5ca5d4f3 (diff) |
Sun Dec 2 01:26:32 PST 2012
Diffstat (limited to 'extra/accountsservice/32bit-crash.patch')
-rw-r--r-- | extra/accountsservice/32bit-crash.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/extra/accountsservice/32bit-crash.patch b/extra/accountsservice/32bit-crash.patch new file mode 100644 index 000000000..87b5d308e --- /dev/null +++ b/extra/accountsservice/32bit-crash.patch @@ -0,0 +1,26 @@ +From 4d5166d1833e42d81b854374aa6e73f83a67a70e Mon Sep 17 00:00:00 2001 +From: Matthias Clasen <mclasen@redhat.com> +Date: Tue, 27 Nov 2012 23:30:45 +0000 +Subject: Fix a crash on 32bit systems + +The login-frequency property of the User interface is defined +as uint64 type. Therefore, when setting it with g_object_set, +a 64bit value is collected, and passing an int might lead to +bad things. +https://bugs.freedesktop.org/show_bug.cgi?id=57343 +--- +diff --git a/src/daemon.c b/src/daemon.c +index ed3a114..4d6f3ab 100644 +--- a/src/daemon.c ++++ b/src/daemon.c +@@ -207,7 +207,7 @@ daemon_local_user_is_excluded (Daemon *daemon, const gchar *username, const gcha + #ifdef HAVE_UTMPX_H + + typedef struct { +- int frequency; ++ guint64 frequency; + gint64 time; + GList *previous_logins; + } UserAccounting; +-- +cgit v0.9.0.2-2-gbebe |