[4.1] 8de2086 Use a unique (and now reserved) VCL name of -C testing.

Lasse Karstensen lkarsten at varnish-software.com
Mon Jan 18 17:38:16 CET 2016


commit 8de208636c4425cbc3257e1ce509794835dfdd73
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jan 18 14:06:45 2016 +0000

    Use a unique (and now reserved) VCL name of -C testing.
    
    Fixes:	#1802

diff --git a/bin/varnishd/mgt/mgt_vcl.c b/bin/varnishd/mgt/mgt_vcl.c
index 498c0b8..e533c69 100644
--- a/bin/varnishd/mgt/mgt_vcl.c
+++ b/bin/varnishd/mgt/mgt_vcl.c
@@ -166,6 +166,9 @@ mgt_new_vcl(struct cli *cli, const char *vclname, const char *vclsrc,
 
 	AN(cli);
 
+	if (C_flag)
+		vclname = ".Cflagtest";
+
 	if (state == NULL)
 		state = "auto";
 



More information about the varnish-commit mailing list