summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2019-04-29 10:14:12 -0400
committerRay Strode <rstrode@redhat.com>2019-04-29 10:14:12 -0400
commitd8b779513474ece1f5ec2fc9b7c32afb73e32181 (patch)
tree9f9b08605802913726cf8f210eaad034f9c36f8b
parent6d6f7d62fd18fe5a4d4c06cb1455887ca3abdd1d (diff)
daemon: ensure cache files for system users are processed
At the moment we skip cache files for system users. That doesn't make much sense; if there's a cache file we should be using it. This commit changes the code to read cache files, even for system users, and so lets root have a non-default session. Closes: https://gitlab.freedesktop.org/accountsservice/accountsservice/issues/65
-rw-r--r--src/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.c b/src/daemon.c
index c52bda3..d7c4437 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -485,7 +485,7 @@ reload_users (Daemon *daemon)
load_entries (daemon, users, TRUE, entry_generator_requested_users);
/* Now add/update users from other sources, possibly non-local */
- load_entries (daemon, users, FALSE, entry_generator_cachedir);
+ load_entries (daemon, users, TRUE, entry_generator_cachedir);
wtmp_helper_update_login_frequencies (users);