[master] b1b3c93 init jails when called with no arguments

Nils Goroll nils.goroll at uplex.de
Thu May 28 10:33:16 CEST 2015


commit b1b3c93d3727a3fdc936b4076dd8268350d075b7
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu May 28 10:33:04 2015 +0200

    init jails when called with no arguments

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 9aa5ef3..78a1ed3 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -509,6 +509,11 @@ main(int argc, char * const *argv)
 	init_params(cli);
 	cli_check(cli);
 
+	if (argc == 1) {
+		jailed++;
+		VJ_Init(NULL);
+	}
+
 	while ((o = getopt(argc, argv,
 	    "a:b:Cdf:Fh:i:j:l:M:n:P:p:r:S:s:T:t:VW:x:")) != -1) {
 		/*



More information about the varnish-commit mailing list