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

Use /tmp as TMPDIR if not otherwise set.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4573 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5f7d80c5
......@@ -643,6 +643,7 @@ main(int argc, char * const *argv)
init_macro();
init_sema();
setenv("TMPDIR", "/tmp", 0);
vtc_tmpdir = tempnam(NULL, "vtc");
AN(vtc_tmpdir);
AZ(mkdir(vtc_tmpdir, 0700));
......
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