summaryrefslogtreecommitdiffstats
path: root/src/tools/tools_mc_util.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix minor typosYuri Chornoivan2013-06-121-1/+1
|
* Fixing critical format string issues.Lukas Slebodnik2013-05-201-1/+2
| | | | | | --missing arguments. --format '%s', but argument is integer. --wrong format string, examle: '%\n'
* Inform about function duplication.Michal Zidek2013-04-171-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.
* TOOLS: invalidate parent groups in memory cache, tooJakub Hrozek2013-01-211-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.
* TOOLS: Provide a convenience function to refresh a list of groupsJakub Hrozek2013-01-151-0/+21
|
* TOOLS: Split querying nss responder into a separate functionJakub Hrozek2013-01-151-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.
* TOOLS: move memcache related functions to tools_mc_utils.cJakub Hrozek2013-01-151-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