[dovecot-cvs] dovecot/src/lib-index mail-cache-fields.c,1.21,1.22
cras at dovecot.org
cras at dovecot.org
Fri Jun 16 12:26:54 EEST 2006
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c,
1.41, 1.42
- Next message: [dovecot-cvs] dovecot/src/deliver Makefile.am, 1.1,
1.2 auth-client.c, 1.1, 1.2 auth-client.h, 1.1, 1.2 deliver.c,
1.20, 1.21 deliver.h, 1.1, 1.2 duplicate.c, 1.1,
1.2 duplicate.h, 1.1, 1.2 mail-send.c, 1.1, 1.2 mail-send.h,
1.1, 1.2 smtp-client.c, 1.1, 1.2 smtp-client.h, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv6992
Modified Files:
mail-cache-fields.c
Log Message:
If cache field's size is wrong, rebuild the cache file instead of crashing
sometimes later.
Index: mail-cache-fields.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-fields.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- mail-cache-fields.c 31 Mar 2006 14:06:52 -0000 1.21
+++ mail-cache-fields.c 16 Jun 2006 09:26:52 -0000 1.22
@@ -244,7 +244,15 @@
}
if (cache->fields[field.idx].field.type != types[i]) {
mail_cache_set_corrupted(cache,
- "registered field type changed");
+ "registered field %s type changed",
+ names);
+ return -1;
+ }
+ if (cache->fields[field.idx].field.field_size !=
+ sizes[i]) {
+ mail_cache_set_corrupted(cache,
+ "registered field %s size changed",
+ names);
return -1;
}
} else {
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c,
1.41, 1.42
- Next message: [dovecot-cvs] dovecot/src/deliver Makefile.am, 1.1,
1.2 auth-client.c, 1.1, 1.2 auth-client.h, 1.1, 1.2 deliver.c,
1.20, 1.21 deliver.h, 1.1, 1.2 duplicate.c, 1.1,
1.2 duplicate.h, 1.1, 1.2 mail-send.c, 1.1, 1.2 mail-send.h,
1.1, 1.2 smtp-client.c, 1.1, 1.2 smtp-client.h, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list