]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox file fixing: If I/O error happens during read, don't finish the fix.
authorTimo Sirainen <tss@iki.fi>
Sun, 4 Apr 2010 22:00:32 +0000 (01:00 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 Apr 2010 22:00:32 +0000 (01:00 +0300)
--HG--
branch : HEAD

src/lib-storage/index/dbox-common/dbox-file-fix.c

index 2eee1f2a1660e6b99b7d823ee40bcb8e1d362c9e..81abe5e303723314b8b62a7c91488dda56e3e7ee 100644 (file)
@@ -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)