diff src/lib-storage/index/dbox-common/dbox-file.c @ 14356:58732d172107

dbox: Reverted recent fstat() avoidance change. It didn't do that, just broke mdbox.
author Timo Sirainen <tss@iki.fi>
date Fri, 16 Mar 2012 18:45:50 +0200
parents a3b162331cd1
children fa6662ab4df3
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-common/dbox-file.c	Thu Mar 15 18:24:15 2012 +0200
+++ b/src/lib-storage/index/dbox-common/dbox-file.c	Fri Mar 16 18:45:50 2012 +0200
@@ -588,7 +588,7 @@
 		return 0;
 	}
 
-	if (ctx->output->offset == 0 && !file->created) {
+	if (ctx->output->offset == 0) {
 		/* first append to existing file. seek to eof first. */
 		if (fstat(file->fd, &st) < 0) {
 			dbox_file_set_syscall_error(file, "fstat()");