summaryrefslogtreecommitdiff
path: root/src/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user.c')
-rw-r--r--src/user.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/user.c b/src/user.c
index 6492a62..1f28e78 100644
--- a/src/user.c
+++ b/src/user.c
@@ -42,6 +42,7 @@
#include <gio/gunixinputstream.h>
#include <polkit/polkit.h>
+#include "user-classify.h"
#include "daemon.h"
#include "user.h"
#include "accounts-user-generated.h"
@@ -291,13 +292,7 @@ user_update_from_pwent (User *user,
g_object_notify (G_OBJECT (user), "password-mode");
}
- /* FIXME: this relies on heuristics that don't always come out
- * right.
- */
- user->system_account = daemon_local_user_is_excluded (user->daemon,
- user->user_name,
- pwent->pw_shell,
- passwd);
+ user->system_account = !user_classify_is_human (user->uid, user->user_name, pwent->pw_shell, passwd);
g_object_thaw_notify (G_OBJECT (user));