]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fix to checking which side should do the locking.
authorTimo Sirainen <tss@iki.fi>
Mon, 18 Feb 2013 04:31:51 +0000 (06:31 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 18 Feb 2013 04:31:51 +0000 (06:31 +0200)
src/doveadm/dsync/dsync-brain.c

index 8a4de03b6ca183975c508843659e030ac34fc876..711989cf906fad17de5011e104825a5005ff8fa9 100644 (file)
@@ -193,7 +193,7 @@ dsync_brain_lock(struct dsync_brain *brain, const char *remote_hostname)
        const char *home;
        int ret;
 
-       if ((ret = strcmp(remote_hostname, my_hostname)) < 0) {
+       if ((ret = strcmp(remote_hostname, my_hostdomain())) < 0) {
                /* locking done by remote */
                return 0;
        }