Package: autofs-ldap
Version: 4.1.4+debian-1

When attempting to open a file on a missing ldap automount directory, autofs will hang for 30 seconds before returning error. This can be recreated on a system with /home automounted via ldap with
cat /home/.missing/badfile

The attached patch resolves the issue.

--- autofs-4.1.4/modules/lookup_ldap.c.orig     2007-01-04 08:49:59.000000000 
+0000
+++ autofs-4.1.4/modules/lookup_ldap.c  2007-01-04 08:50:34.000000000 +0000
@@ -617,10 +617,8 @@ int lookup_mount(const char *root, const
        me = cache_lookup_first();
        t_last_read = me ? now - me->age : ap.exp_runfreq + 1;
 
-       if (t_last_read > ap.exp_runfreq) 
-               if ((ret & (CHE_MISSING | CHE_UPDATED)) && 
-                   (ret2 & (CHE_MISSING | CHE_UPDATED)))
-                       need_hup = 1;
+       if (t_last_read > ap.exp_runfreq && (ret2 & CHE_UPDATED)) 
+               need_hup = 1;
 
        if (ret == CHE_MISSING && ret2 == CHE_MISSING) {
                int wild = CHE_MISSING;

Reply via email to