diff --git a/CHANGELOG b/CHANGELOG index c98f14e..07c8e96 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ - fix handling of autofs specific mount options. - fix include check full patch for file map of same name. - fix cache entrys not being cleaned up on submount expire. +- fix LDAP lookup delete cache entry only if entry doesn't exist. 1/9/2006 autofs-5.0.1 rc2 ------------------------- diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c index b63539e..277e2d6 100644 --- a/modules/lookup_ldap.c +++ b/modules/lookup_ldap.c @@ -1546,7 +1546,7 @@ static int check_map_indirect(struct aut need_map = 1; } - if (ret == CHE_MISSING) { + if (ret == CHE_MISSING && exists) { pthread_cleanup_push(cache_lock_cleanup, mc); cache_writelock(mc); if (cache_delete(mc, key))