Commit 3b31f48a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't mess up the vcl name of the VCL created with -f or -b, need to

add proper metadata/comment field.

Spotted by:	Kristian



git-svn-id: http://www.varnish-cache.org/svn/trunk@4479 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7bf6f659
......@@ -332,6 +332,8 @@ mgt_vcc_default(const char *b_arg, const char *f_arg, char *vcl, int C_flag)
struct vclprog *vp;
char buf[BUFSIZ];
/* XXX: annotate vcl with -b/-f arg so people know where it came from */
(void)f_arg;
if (b_arg != NULL) {
AZ(vcl);
/*
......@@ -364,10 +366,8 @@ mgt_vcc_default(const char *b_arg, const char *f_arg, char *vcl, int C_flag)
free(port);
vcl = strdup(buf);
AN(vcl);
bprintf(buf, "boot (-b %s)", b_arg);
} else {
bprintf(buf, "boot (-f %s)", f_arg);
}
strcpy(buf, "boot");
vf = mgt_VccCompile(&sb, vcl, C_flag);
free(vcl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment