dovecot-2.0: sdbox: mailbox_update() could have changed UIDVALID...

dovecot at dovecot.org dovecot at dovecot.org
Sun Apr 4 22:24:45 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/46ede677961d
changeset: 11023:46ede677961d
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Apr 04 22:24:43 2010 +0300
description:
sdbox: mailbox_update() could have changed UIDVALIDITY incorrectly.

diffstat:

 src/lib-storage/index/dbox-single/sdbox-storage.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 7835a672117f -r 46ede677961d src/lib-storage/index/dbox-single/sdbox-storage.c
--- a/src/lib-storage/index/dbox-single/sdbox-storage.c	Sat Apr 03 05:36:13 2010 +0300
+++ b/src/lib-storage/index/dbox-single/sdbox-storage.c	Sun Apr 04 22:24:43 2010 +0300
@@ -120,7 +120,9 @@
 
 	if (update != NULL && update->uid_validity != 0)
 		uid_validity = update->uid_validity;
-	else if (hdr->uid_validity == 0) {
+	else if (hdr->uid_validity != 0)
+		uid_validity = hdr->uid_validity;
+	else {
 		/* set uidvalidity */
 		uid_validity = dbox_get_uidvalidity_next(box->list);
 	}


More information about the dovecot-cvs mailing list