From 4217a58bdcc40e29a75fc23c579727bbdd13150e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 5 Apr 2010 01:00:32 +0300 Subject: [PATCH] dbox file fixing: If I/O error happens during read, don't finish the fix. --HG-- branch : HEAD --- src/lib-storage/index/dbox-common/dbox-file-fix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-storage/index/dbox-common/dbox-file-fix.c b/src/lib-storage/index/dbox-common/dbox-file-fix.c index 2eee1f2a16..81abe5e303 100644 --- a/src/lib-storage/index/dbox-common/dbox-file-fix.c +++ b/src/lib-storage/index/dbox-common/dbox-file-fix.c @@ -286,7 +286,7 @@ dbox_file_fix_write_stream(struct dbox_file *file, uoff_t start_offset, return -1; } } - return 0; + return ret; } int dbox_file_fix(struct dbox_file *file, uoff_t start_offset) -- 2.47.3