[master] 5f37e7a Maybe I should just stay away from my keyboard today.

Poul-Henning Kamp phk at FreeBSD.org
Mon Oct 17 12:52:05 CEST 2016


commit 5f37e7a2ea8f5ce2f5431d0d2ee2d137f90751ad
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Oct 17 10:51:07 2016 +0000

    Maybe I should just stay away from my keyboard today.

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index e9f7c64..00bb7e2 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -769,8 +769,8 @@ main(int argc, char * const *argv)
 			if (Cn_arg == n_arg)
 				AZ(rmdir(Cn_arg));
 			AZ(VSB_finish(cli->sb));
-			fprintf(stderr, "%s\n", VSB_data(cli->sb));
-			exit(0);
+			printf("%s\n", VSB_data(cli->sb));
+			exit(cli->result == CLIS_OK ? 0 : 2);
 		}
 		cli_check(cli);
 		free(vcl);



More information about the varnish-commit mailing list