dovecot-2.2: dsync: Fixed attribute value comparisons.

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 20 09:59:43 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/8b5c098cbd0f
changeset: 16055:8b5c098cbd0f
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 20 09:59:27 2013 +0200
description:
dsync: Fixed attribute value comparisons.

diffstat:

 src/doveadm/dsync/dsync-mailbox-import.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r a4c01707feb7 -r 8b5c098cbd0f src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c	Tue Mar 19 23:31:41 2013 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-import.c	Wed Mar 20 09:59:27 2013 +0200
@@ -317,11 +317,13 @@
 	if (DSYNC_ATTR_HAS_VALUE(attr) &&
 	    !DSYNC_ATTR_HAS_VALUE(local_attr)) {
 		/* remote has a value and local doesn't -> use it */
-		return 1;
+		*cmp_r = 1;
+		return 0;
 	} else if (!DSYNC_ATTR_HAS_VALUE(attr) &&
 		   DSYNC_ATTR_HAS_VALUE(local_attr)) {
 		/* remote doesn't have a value, bt local does -> skip */
-		return -1;
+		*cmp_r = -1;
+		return 0;
 	}
 
 	return dsync_attributes_cmp_values(attr, local_attr, cmp_r);


More information about the dovecot-cvs mailing list