From b08bcc387ad99b9c408183960c127dc77975b6ff Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Tue, 30 Jun 2015 17:43:34 +0200 Subject: sss_cache: Clear also initgroups fast cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michal Židek --- src/tools/tools_mc_util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tools/tools_mc_util.c b/src/tools/tools_mc_util.c index 9634b86e2..c1b5c616d 100644 --- a/src/tools/tools_mc_util.c +++ b/src/tools/tools_mc_util.c @@ -147,6 +147,16 @@ static int clear_fastcache(bool *sssd_nss_is_off) } } + ret = sss_memcache_invalidate(SSS_NSS_MCACHE_DIR"/initgroups"); + if (ret != EOK) { + if (ret == EACCES) { + *sssd_nss_is_off = false; + return EOK; + } else { + return ret; + } + } + *sssd_nss_is_off = true; return EOK; } -- cgit