]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixes to printing remote's stderr output.
authorTimo Sirainen <tss@iki.fi>
Tue, 8 Jan 2013 08:57:34 +0000 (10:57 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 8 Jan 2013 08:57:34 +0000 (10:57 +0200)
src/doveadm/dsync/doveadm-dsync.c

index a3ca18529a90dc19cd298b070223cf4104946e0f..044ae978536f9021425eb15d5ebcb1fc3a0ee6a9 100644 (file)
@@ -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);
 }