28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
$OpenBSD: patch-src_libaccountsservice_act-user_c,v 1.1 2013/01/05 15:02:05 ajacoutot Exp $
|
|
|
|
From f950d51aa018c171b98602787598e6b841ab1f6c Mon Sep 17 00:00:00 2001
|
|
From: Giovanni Campagna <gcampagna@src.gnome.org>
|
|
Date: Tue, 18 Dec 2012 15:36:12 +0000
|
|
Subject: Fix login history variant handling
|
|
|
|
--- src/libaccountsservice/act-user.c.orig Wed Dec 12 18:25:34 2012
|
|
+++ src/libaccountsservice/act-user.c Sat Jan 5 15:40:09 2013
|
|
@@ -1120,7 +1120,7 @@ collect_props (const gchar *key,
|
|
GVariant *new_login_history = value;
|
|
|
|
if (user->login_history == NULL ||
|
|
- !g_variant_compare (user->login_history, new_login_history)) {
|
|
+ !g_variant_equal (user->login_history, new_login_history)) {
|
|
if (user->login_history)
|
|
g_variant_unref (user->login_history);
|
|
user->login_history = g_variant_ref (new_login_history);
|
|
@@ -1375,7 +1375,7 @@ _act_user_load_from_user (ActUser *user,
|
|
user->login_time = user_to_copy->login_time;
|
|
g_object_notify (G_OBJECT (user), "login-time");
|
|
|
|
- user->login_history = g_variant_ref (user_to_copy->login_history);
|
|
+ user->login_history = user_to_copy->login_history ? g_variant_ref (user_to_copy->login_history) : NULL;
|
|
g_object_notify (G_OBJECT (user), "login-history");
|
|
|
|
user->account_type = user_to_copy->account_type;
|