From 2332066b523f68588a783e594960680fa31ab5be Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 14 May 2013 17:27:57 +0200 Subject: [PATCH] Don't treat remote users as system accounts Fix a bug in the logic that determines whether a user is a system account or not. Don't treat accounts that have no shadow information as remote users. https://bugs.freedesktop.org/show_bug.cgi?id=64186 --- src/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.c b/src/user.c index be1fcb7..98c2cce 100644 --- a/src/user.c +++ b/src/user.c @@ -244,7 +244,7 @@ user_update_from_pwent (User *user, g_object_notify (G_OBJECT (user), "shell"); } - passwd = pwent->pw_passwd; + passwd = NULL; #ifdef HAVE_SHADOW_H spent = getspnam (pwent->pw_name); if (spent) -- 1.8.2.1