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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/6ed743a6cdbd
changeset: 7852:6ed743a6cdbd
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Aug 31 11:48:44 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 74f729acbf55 -r 6ed743a6cdbd src/lib-index/mail-index-fsck.c
--- a/src/lib-index/mail-index-fsck.c	Sun Aug 31 11:46:53 2008 +0300
+++ b/src/lib-index/mail-index-fsck.c	Sun Aug 31 11:48:44 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