dovecot-1.2: index fsck: Don't give bogus "duplicate extension" ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Aug 31 11:50:37 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/447638ac601a
changeset: 8134:447638ac601a
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Aug 31 11:48:23 2008 +0300
description:
index fsck: Don't give bogus "duplicate extension" errors and break them.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-fsck.c |    2 +-

diffs (19 lines):

diff -r 11f07916003a -r 447638ac601a src/lib-index/mail-index-fsck.c
--- a/src/lib-index/mail-index-fsck.c	Sun Aug 31 11:47:07 2008 +0300
+++ b/src/lib-index/mail-index-fsck.c	Sun Aug 31 11:48:23 2008 +0300
@@ -298,6 +298,7 @@ mail_index_fsck_extensions(struct mail_i
 							 &next_offset);
 			}
 			array_append(&names, &name, 1);
+			offset = next_offset;
 			continue;
 		}
 
@@ -307,7 +308,6 @@ mail_index_fsck_extensions(struct mail_i
 			    map->hdr_copy_buf, next_offset, (size_t)-1);
 		buffer_set_used_size(map->hdr_copy_buf, hdr->header_size);
 		map->hdr_base = map->hdr_copy_buf->data;
-		next_offset = offset;
 	}
 }
 


More information about the dovecot-cvs mailing list