diff options
authorRay Strode <>2019-04-29 10:14:12 -0400
committerRay Strode <>2019-04-29 10:14:12 -0400
commitd8b779513474ece1f5ec2fc9b7c32afb73e32181 (patch)
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:
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);