[dovecot-cvs] dovecot/src/lib-index mail-modifylog.c,1.46,1.47
cras at procontrol.fi
cras at procontrol.fi
Thu Jul 10 19:24:12 EEST 2003
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv13890/lib-index
Modified Files:
mail-modifylog.c
Log Message:
DEBUG: crashfix when switching modify log
Index: mail-modifylog.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-modifylog.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- mail-modifylog.c 15 May 2003 19:22:22 -0000 1.46
+++ mail-modifylog.c 10 Jul 2003 15:24:10 -0000 1.47
@@ -888,6 +888,10 @@
if (modifylog_have_other_users(file->log, TRUE) != 0)
return FALSE;
+#ifdef DEBUG
+ mprotect(file->header, sizeof(struct modify_log_header),
+ PROT_READ | PROT_WRITE);
+#endif
file->header->sync_id = 0;
file->header->used_file_size = sizeof(struct modify_log_header);
More information about the dovecot-cvs
mailing list