[gdm/accounts-service-split: 2/22] Don't match users as dupes of themselves
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/accounts-service-split: 2/22] Don't match users as dupes of themselves
- Date: Mon, 7 Jun 2010 22:24:42 +0000 (UTC)
commit c40b580ed71f206e8bcf0b2772011b4c944d1832
Author: Ray Strode <rstrode redhat com>
Date: Mon Mar 15 13:21:24 2010 -0400
Don't match users as dupes of themselves
gui/simple-greeter/gdm-user-manager.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 01dc507..fe9d13d 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -746,9 +746,9 @@ match_real_name_cmpfunc (gconstpointer a,
static gboolean
match_real_name_hrfunc (gpointer key,
gpointer value,
- gpointer user_data)
+ gpointer user)
{
- return (g_strcmp0 (user_data, gdm_user_get_real_name (value)) == 0);
+ return (value != user && g_strcmp0 (gdm_user_get_real_name (user), gdm_user_get_real_name (value)) == 0);
}
static void
@@ -760,7 +760,7 @@ add_user (GdmUserManager *manager,
add_sessions_for_user (manager, user);
dup = g_hash_table_find (manager->priv->users,
match_real_name_hrfunc,
- (char *) gdm_user_get_real_name (user));
+ user);
if (dup != NULL) {
_gdm_user_show_full_display_name (user);
_gdm_user_show_full_display_name (dup);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]