Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 130701790bf2d95e902edf16031ff596 > files > 161

autofs-5.0.1-0.rc2.164.el5_8.src.rpm

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))