[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.79, 1.80

cras at dovecot.org cras at dovecot.org
Fri Sep 10 15:22:25 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv2140/lib-storage/index/mbox

Modified Files:
	mbox-sync.c 
Log Message:
fix



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- mbox-sync.c	10 Sep 2004 10:49:09 -0000	1.79
+++ mbox-sync.c	10 Sep 2004 12:22:23 -0000	1.80
@@ -453,12 +453,12 @@
 }
 
 static int
-mbox_write_from_line(struct mbox_sync_mail_context *ctx, off_t move_diff)
+mbox_write_from_line(struct mbox_sync_mail_context *ctx)
 {
 	string_t *str = ctx->sync_ctx->from_line;
 
 	if (pwrite_full(ctx->sync_ctx->fd, str_data(str), str_len(str),
-			ctx->mail.from_offset + move_diff) < 0) {
+			ctx->mail.from_offset) < 0) {
 		mbox_set_syscall_error(ctx->sync_ctx->ibox, "pwrite_full()");
 		return -1;
 	}
@@ -540,7 +540,7 @@
 			   new location */
 			mail_ctx->mail.from_offset += move_diff;
 			mail_ctx->mail.offset += move_diff;
-			if (mbox_write_from_line(mail_ctx, move_diff) < 0)
+			if (mbox_write_from_line(mail_ctx) < 0)
 				return -1;
 		}
 	} else if (mail_ctx->need_rewrite ||



More information about the dovecot-cvs mailing list