mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +03:00
r18707: Fix the build when you have libnscd installed (which apparently no host
on the buildfarm has). Guenther
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2ec4bc0f52
commit
b0bb364df0
@@ -3017,24 +3017,3 @@ int this_is_smp(void)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void smb_nscd_flush_cache(const char *service)
|
||||
{
|
||||
#ifdef HAVE_NSCD_FLUSH_CACHE
|
||||
if (!nscd_flush_cache(service)) {
|
||||
DEBUG(10,("failed to flush nscd cache for '%s' service: %s. "
|
||||
"Is nscd running?\n",
|
||||
service, strerror(errno)));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void smb_nscd_flush_user_cache(void)
|
||||
{
|
||||
smb_nscd_flush_cache("passwd");
|
||||
}
|
||||
|
||||
void smb_nscd_flush_group_cache(void)
|
||||
{
|
||||
smb_nscd_flush_cache("group");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user