dovecot-2.0: lib-index: readonly status was checked wrong when d...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 13 13:52:22 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/39fef730dec3
changeset: 12100:39fef730dec3
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 13 11:52:18 2010 +0100
description:
lib-index: readonly status was checked wrong when deleting corrupted index files.
diffstat:
src/lib-index/mail-index-map-read.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c98cdeb2c67a -r 39fef730dec3 src/lib-index/mail-index-map-read.c
--- a/src/lib-index/mail-index-map-read.c Mon Sep 13 11:29:23 2010 +0100
+++ b/src/lib-index/mail-index-map-read.c Mon Sep 13 11:52:18 2010 +0100
@@ -433,7 +433,7 @@
ret = mail_index_sync_map(&index->map, type,
TRUE);
}
- } else if (ret == 0 && index->readonly) {
+ } else if (ret == 0 && !index->readonly) {
/* make sure we don't try to open the file again */
if (unlink(index->filepath) < 0 && errno != ENOENT)
mail_index_set_syscall_error(index, "unlink()");
More information about the dovecot-cvs
mailing list