dovecot-1.1: Catch dotlock creation timeout error.

dovecot at dovecot.org dovecot at dovecot.org
Thu Mar 6 10:27:07 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/c4fda7e5d879
changeset: 7360:c4fda7e5d879
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Mar 06 09:44:24 2008 +0200
description:
Catch dotlock creation timeout error.

diffstat:

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

diffs (12 lines):

diff -r b747eb6e1ca1 -r c4fda7e5d879 src/lib-index/mail-cache.c
--- a/src/lib-index/mail-cache.c	Thu Mar 06 09:43:41 2008 +0200
+++ b/src/lib-index/mail-cache.c	Thu Mar 06 09:44:24 2008 +0200
@@ -474,7 +474,7 @@ static int mail_cache_lock_file(struct m
 		i_assert(cache->dotlock == NULL);
 		ret = file_dotlock_create(&cache->dotlock_settings,
 					  cache->filepath, 0, &cache->dotlock);
-		if (ret < 0) {
+		if (ret <= 0) {
 			mail_cache_set_syscall_error(cache,
 						     "file_dotlock_create()");
 		}


More information about the dovecot-cvs mailing list