diff options
author | Ray Strode <rstrode@redhat.com> | 2017-05-04 12:04:05 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2017-05-04 12:22:30 -0400 |
commit | 1890b71ed4d64ce17240b93a219a3691806ea49a (patch) | |
tree | 9989e1a3046834475144085dcf25096267bf57e0 /src/user.h | |
parent | db223bc474b5ae914f2c6ff4d07c69d747cfeda7 (diff) | |
download | accountsservice-cache-fix.tar.gz |
daemon: don't treat explicitly requested users as "cached"cache-fix
The ListCachedUsers method currently returns users that have
been explicitly requested by a client. It's weird that merely
querying a user can make it show up in login screen user lists.
Furthermore, UncacheUser is broken since commit
177509e9460b149ecbf85e75c930be2ea00b7d05 because the user has
been explicitly requested in order to uncache it. So trying
to uncache a user inadvertently caches the user.
This commit fixes that.
Diffstat (limited to 'src/user.h')
-rw-r--r-- | src/user.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -63,6 +63,9 @@ void user_update_local_account_property (User *user, gboolean local); void user_update_system_account_property (User *user, gboolean system); +gboolean user_get_cached (User *user); +void user_set_cached (User *user, + gboolean cached); void user_register (User *user); void user_unregister (User *user); |