]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm director dump: Fixed output to include LFs
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 22:03:05 +0000 (01:03 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 25 Oct 2016 17:33:27 +0000 (20:33 +0300)
Otherwise all the output will be mixed up in the same line.

src/doveadm/doveadm-director.c

index cc0ae658a1d022062fdc47e76c3b8b2c933fdabc..1bf79155d453d8f854717a995fc83212b8877550 100644 (file)
@@ -722,9 +722,9 @@ static void cmd_director_dump(struct doveadm_cmd_context *cctx)
 
        doveadm_print_init(DOVEADM_PRINT_TYPE_FORMATTED);
        if (ctx->explicit_socket_path)
-               doveadm_print_formatted_set_format("doveadm director %{command} -a %{socket-path} %{host} %{vhost_count}");
+               doveadm_print_formatted_set_format("doveadm director %{command} -a %{socket-path} %{host} %{vhost_count}\n");
        else
-               doveadm_print_formatted_set_format("doveadm director %{command} %{host} %{vhost_count}");
+               doveadm_print_formatted_set_format("doveadm director %{command} %{host} %{vhost_count}\n");
 
        doveadm_print_header_simple("command");
        doveadm_print_header_simple("socket-path");