On Mon, Mar 24, 2003 at 12:54:04PM +0100, Laurent Hofmann wrote:
> It happens when the maildir doesn't exist : it create the homedir and it
> crash, writting a qmail-local.core in the homedir...
> It didn't happen with the patch ldap 20020901...
>
> any hint ?
>
Try this patch:
Index: maildir++.c
===================================================================
RCS file: /home/cvs-qmail-ldap/CVS/qmail-ldap/maildir++.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- maildir++.c 23 Feb 2003 17:14:40 -0000 1.20
+++ maildir++.c 24 Mar 2003 13:29:11 -0000 1.21
@@ -394,7 +394,7 @@
path.len = plen;
}
}
- closedir(dirp);
+ if (dirp) closedir(dirp);
path.len = plen;
calc_curnew(q, &maxtime);
@@ -564,7 +564,7 @@
}
}
}
- closedir(dirp);
+ if (dirp) closedir(dirp);
path.len = slen;
return i;
@@ -643,7 +643,7 @@
q->size += (long)filest.st_size;
}
}
- closedir(dirp);
+ if (dirp) closedir(dirp);
/* the same thing with cur */
fmt_str(path.s + path.len - 5, "cur");
===================================================================
This should solve your problem.
--
:wq Claudio