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