[dovecot-cvs] dovecot/src/lib-index/maildir maildir-uidlist.c,1.10,1.11

cras at procontrol.fi cras at procontrol.fi
Mon Oct 20 09:01:59 EEST 2003


Update of /home/cvs/dovecot/src/lib-index/maildir
In directory danu:/tmp/cvs-serv18881/lib-index/maildir

Modified Files:
	maildir-uidlist.c 
Log Message:
Added dotlock parameter to specify how old lock file has to be to be
immediately deleted. This fixes the problem of never deleting uidlist.lock
files.



Index: maildir-uidlist.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/maildir/maildir-uidlist.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- maildir-uidlist.c	10 Aug 2003 23:56:23 -0000	1.10
+++ maildir-uidlist.c	20 Oct 2003 05:01:57 -0000	1.11
@@ -26,7 +26,7 @@
 		return 1;
 
 	path = t_strconcat(index->control_dir, "/" MAILDIR_UIDLIST_NAME, NULL);
-	fd = file_dotlock_open(path, NULL, 0, UIDLIST_LOCK_STALE_TIMEOUT,
+	fd = file_dotlock_open(path, NULL, 0, 0, UIDLIST_LOCK_STALE_TIMEOUT,
 			       NULL, NULL);
 	if (fd == -1) {
 		if (errno == EAGAIN)



More information about the dovecot-cvs mailing list