dovecot-2.0: dbox file fixing: If I/O error happens during read,...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 5 01:06:06 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/1f97d4217f73
changeset: 11037:1f97d4217f73
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 05 01:00:32 2010 +0300
description:
dbox file fixing: If I/O error happens during read, don't finish the fix.

diffstat:

 src/lib-storage/index/dbox-common/dbox-file-fix.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ae8294182346 -r 1f97d4217f73 src/lib-storage/index/dbox-common/dbox-file-fix.c
--- a/src/lib-storage/index/dbox-common/dbox-file-fix.c	Mon Apr 05 00:42:57 2010 +0300
+++ b/src/lib-storage/index/dbox-common/dbox-file-fix.c	Mon Apr 05 01:00:32 2010 +0300
@@ -286,7 +286,7 @@
 			return -1;
 		}
 	}
-	return 0;
+	return ret;
 }
 
 int dbox_file_fix(struct dbox_file *file, uoff_t start_offset)


More information about the dovecot-cvs mailing list