]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Ignore doveadm user move if host is already the same.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 20 Jan 2017 14:03:12 +0000 (16:03 +0200)
committerGitLab <gitlab@git.dovecot.net>
Fri, 20 Jan 2017 15:46:57 +0000 (17:46 +0200)
src/director/doveadm-connection.c

index 8c03eafd16d22a32b8ad89a0fdf2ebd7ed950ae7..b99ad185febb9e046460c42627492fd4fd68fb79 100644 (file)
@@ -673,8 +673,10 @@ doveadm_cmd_user_move(struct doveadm_connection *conn, const char *const *args)
                return 1;
        }
 
-       director_move_user(conn->dir, conn->dir->self_host, NULL,
-                          username_hash, host);
+       if (user == NULL || user->host != host) {
+               director_move_user(conn->dir, conn->dir->self_host, NULL,
+                                  username_hash, host);
+       }
        o_stream_nsend(conn->output, "OK\n", 3);
        return 1;
 }