diff src/doveadm/dsync/dsync-brain.c @ 15825:df29194c1ab6

dsync: Fix to checking which side should do the locking.
author Timo Sirainen <tss@iki.fi>
date Mon, 18 Feb 2013 06:31:51 +0200
parents adb9857a3879
children 607758d425e7
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain.c	Sun Feb 17 11:48:16 2013 +0200
+++ b/src/doveadm/dsync/dsync-brain.c	Mon Feb 18 06:31:51 2013 +0200
@@ -193,7 +193,7 @@
 	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;
 	}