[master] 00736b7 Use a unique (and now reserved) VCL name of -C testing.

Poul-Henning Kamp phk at FreeBSD.org
Mon Jan 18 15:07:26 CET 2016


commit 00736b717316cac500c9508d6d46ac5fb6e0eca4
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 3766eb8..46359df 100644
--- a/bin/varnishd/mgt/mgt_vcl.c
+++ b/bin/varnishd/mgt/mgt_vcl.c
@@ -173,6 +173,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