From aad0b39ecabd424b4a6ff98b277137c2cf10b93a Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Matthew Monaco Date: Mon, 7 May 2012 08:21:19 -0600 Subject: [PATCH 2/2] Check shell when building cached list --- src/daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/daemon.c b/src/daemon.c index bff139e..d5c0ba1 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -835,13 +835,15 @@ finish_list_cached_users (gpointer user_data) const gchar *name; User *user; uid_t uid; + gchar *shell; object_paths = g_ptr_array_new (); g_hash_table_iter_init (&iter, data->daemon->priv->users); while (g_hash_table_iter_next (&iter, (gpointer *)&name, (gpointer *)&user)) { uid = user_local_get_uid (user); - if (!daemon_local_user_is_excluded (data->daemon, name, NULL)) { + shell = user_local_get_shell (user); + if (!daemon_local_user_is_excluded (data->daemon, name, shell)) { g_debug ("user %s %ld not excluded\n", name, (long) uid); g_ptr_array_add (object_paths, (gpointer) user_local_get_object_path (user)); } -- 1.7.10.2