dovecot-2.0: lib-index: If index is read-only, always fail when ...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 31 22:34:49 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/7adc45a6da2e
changeset: 11438:7adc45a6da2e
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 31 20:34:42 2010 +0100
description:
lib-index: If index is read-only, always fail when trying to lock cache file.

diffstat:

 src/lib-index/mail-cache.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r ba9d1b490bc3 -r 7adc45a6da2e src/lib-index/mail-cache.c
--- a/src/lib-index/mail-cache.c	Mon May 31 19:28:04 2010 +0100
+++ b/src/lib-index/mail-cache.c	Mon May 31 20:34:42 2010 +0100
@@ -551,7 +551,8 @@
 		(void)mail_cache_open_and_verify(cache);
 
 	if (MAIL_CACHE_IS_UNUSABLE(cache) ||
-	    MAIL_INDEX_IS_IN_MEMORY(cache->index))
+	    MAIL_INDEX_IS_IN_MEMORY(cache->index) ||
+	    cache->index->readonly)
 		return 0;
 
 	iview = mail_index_view_open(cache->index);


More information about the dovecot-cvs mailing list