[dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.38,1.39
cras at procontrol.fi
cras at procontrol.fi
Sun Jul 6 00:33:21 EEST 2003
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv27940/lib-index
Modified Files:
mail-index-open.c
Log Message:
Moved all dotlocking code to lib/. Also we now use temp file + link() rather
than rely on working O_EXCL.
Index: mail-index-open.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-open.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- mail-index-open.c 15 Jun 2003 03:42:28 -0000 1.38
+++ mail-index-open.c 5 Jul 2003 20:33:18 -0000 1.39
@@ -263,8 +263,8 @@
static void mail_index_cleanup_temp_files(const char *dir)
{
- unlink_lockfiles(dir, t_strconcat("temp.", my_hostname, NULL),
- "temp.", time(NULL) - TEMP_FILE_TIMEOUT);
+ unlink_lockfiles(dir, t_strconcat(".temp.", my_hostname, ".", NULL),
+ ".temp.", time(NULL) - TEMP_FILE_TIMEOUT);
}
void mail_index_init(struct mail_index *index, const char *dir)
More information about the dovecot-cvs
mailing list