Commit 5bb3ee40 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

All transient files should go in tmpdir, not pwd

parent 4505710e
varnishtest "Test inclide vs. unsafe_path"
varnishtest "Test include vs. unsafe_path"
server s1 {
rxreq
txresp -hdr "foo: bAr" -hdr "bar: fOo" -bodylen 4
} -start
shell "echo > ${pwd}/_.c00053"
shell "echo > ${tmpdir}/_.c00053"
varnish v1 -vcl+backend {
include "${pwd}/_.c00053";
include "${tmpdir}/_.c00053";
}
varnish v1 -cliok "param.set vcc_unsafe_path off"
......@@ -17,13 +17,13 @@ varnish v1 -errvcl {Include path is unsafe} {
backend default {
.host = "${s1_sock}";
}
include "${pwd}/_.c00053";
include "${tmpdir}/_.c00053";
}
varnish v1 -cliok "param.set vcl_dir ${pwd}"
varnish v1 -cliok "param.set vcl_dir ${tmpdir}"
varnish v1 -vcl+backend {
include "_.c00053";
}
shell "rm -f ${pwd}/_.c00053"
shell "rm -f ${tmpdir}/_.c00053"
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