[master] 5bb3ee4 All transient files should go in tmpdir, not pwd

Poul-Henning Kamp phk at FreeBSD.org
Mon Mar 16 21:47:27 CET 2015


commit 5bb3ee40af8a5b684b23704a0e31a439cab6280c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Mar 16 20:45:38 2015 +0000

    All transient files should go in tmpdir, not pwd

diff --git a/bin/varnishtest/tests/c00053.vtc b/bin/varnishtest/tests/c00053.vtc
index 76c9bd2..9b87fa1 100644
--- a/bin/varnishtest/tests/c00053.vtc
+++ b/bin/varnishtest/tests/c00053.vtc
@@ -1,14 +1,14 @@
-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"



More information about the varnish-commit mailing list