dovecot: Fix to last change

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 6 21:56:12 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/a677ce398a6f
changeset: 6708:a677ce398a6f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 06 21:54:57 2007 +0200
description:
Fix to last change

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-cache.c |    2 +-

diffs (12 lines):

diff -r 4752637a6ad4 -r a677ce398a6f src/lib-index/mail-cache.c
--- a/src/lib-index/mail-cache.c	Tue Nov 06 21:54:37 2007 +0200
+++ b/src/lib-index/mail-cache.c	Tue Nov 06 21:54:57 2007 +0200
@@ -520,7 +520,7 @@ int mail_cache_lock(struct mail_cache *c
 		    (require_same_reset_id || i == 0)) {
 			/* we want the latest cache file */
 			ret = mail_cache_reopen(cache);
-			if (ret <= 0)
+			if (ret < 0 || (ret == 0 && require_same_reset_id))
 				break;
 		}
 


More information about the dovecot-cvs mailing list