From: Timo Sirainen Date: Tue, 8 Jan 2013 08:57:34 +0000 (+0200) Subject: dsync: Fixes to printing remote's stderr output. X-Git-Tag: 2.2.beta2~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=151a807134b60b8442e2aeff10e2dae9a67d9722;p=thirdparty%2Fdovecot%2Fcore.git dsync: Fixes to printing remote's stderr output. --- diff --git a/src/doveadm/dsync/doveadm-dsync.c b/src/doveadm/dsync/doveadm-dsync.c index a3ca18529a..044ae97853 100644 --- a/src/doveadm/dsync/doveadm-dsync.c +++ b/src/doveadm/dsync/doveadm-dsync.c @@ -59,9 +59,9 @@ static void remote_error_input(struct dsync_cmd_context *ctx) const char *line; while ((line = i_stream_read_next_line(ctx->err_stream)) != NULL) - i_error("remote: %s", line); + fprintf(stderr, "%s\n", line); - if (ctx->err_stream->eof) + if (ctx->err_stream->eof && ctx->io_err != NULL) io_remove(&ctx->io_err); }