summaryrefslogtreecommitdiff
path: root/src/tools/tools_mc_util.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-12Fix minor typosYuri Chornoivan1-1/+1
2013-05-20Fixing critical format string issues.Lukas Slebodnik1-1/+2
--missing arguments. --format '%s', but argument is integer. --wrong format string, examle: '%\n'
2013-04-17Inform about function duplication.Michal Zidek1-0/+3
sss_mc_set_recycled is a static function, that should not be used outside nsssrv_mmap_cache.c. The sss_cache tool is an exception, because in the case when sssd is not running, sss_cache must invalidate the memory cache file. That is why sss_mc_set_recycled was copied to the tools_mc_util.c (as helper function for sss_memcache_invalidate function). It was duplicated to allow this function to remain static (and invisible to any .h files), so that it is not used anywhere else. Wrong usage of this function might cause race conditions and corrupt the cache. I'll add comments about the duplication to the code.
2013-01-21TOOLS: invalidate parent groups in memory cache, tooJakub Hrozek1-3/+65
https://fedorahosted.org/sssd/ticket/1775 In addition to invalidating the group being added to when adding a member group/user, we also need to invalidate all its parent groups, otherwise this getgrnam("parent") wouldn't report the members newly added to its child groups.
2013-01-15TOOLS: Provide a convenience function to refresh a list of groupsJakub Hrozek1-0/+21
2013-01-15TOOLS: Split querying nss responder into a separate functionJakub Hrozek1-0/+55
The tools query the responder in order to sync the memcache after performing changes to the local database. The functions will be reused by other tools so I split them into a separate functions.
2013-01-15TOOLS: move memcache related functions to tools_mc_utils.cJakub Hrozek1-0/+187
The upcoming patches will link only users of this file with client libs, so it's better to have it separate. There is no functional change in this patch