dovecot-2.2: dsync: Fixed running with tcp/tcps destination.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 27 13:47:15 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/84b45106e143
changeset: 19024:84b45106e143
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 27 15:46:23 2015 +0200
description:
dsync: Fixed running with tcp/tcps destination.
diffstat:
src/doveadm/doveadm-dsync.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r d6df577504cf -r 84b45106e143 src/doveadm/doveadm-dsync.c
--- a/src/doveadm/doveadm-dsync.c Thu Aug 27 15:28:21 2015 +0200
+++ b/src/doveadm/doveadm-dsync.c Thu Aug 27 15:46:23 2015 +0200
@@ -626,14 +626,19 @@
brain = dsync_brain_master_init(user, ibc, ctx->sync_type,
brain_flags, &set);
- if (ctx->run_type == DSYNC_RUN_TYPE_LOCAL) {
+ switch (ctx->run_type) {
+ case DSYNC_RUN_TYPE_LOCAL:
if (cmd_dsync_run_local(ctx, user, brain, ibc2,
&changes_during_sync, &mail_error) < 0)
ret = -1;
- } else {
+ break;
+ case DSYNC_RUN_TYPE_CMD:
ctx->child_wait = child_wait_new_with_pid(ctx->remote_pid,
cmd_dsync_remote_exited, ctx);
+ /* fall through */
+ case DSYNC_RUN_TYPE_STREAM:
cmd_dsync_run_remote(user);
+ break;
}
if (ctx->state_input != NULL) {
More information about the dovecot-cvs
mailing list