[master] 1041a3d Attempt to make the tmp dir owned by 'varnish' for priv-sep

Poul-Henning Kamp phk at FreeBSD.org
Sat Jan 7 13:24:04 CET 2017


commit 1041a3db81bd48f7c3185055c8815b09e24c488e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Jan 7 12:05:22 2017 +0000

    Attempt to make the tmp dir owned by 'varnish' for priv-sep

diff --git a/tools/vtest.sh b/tools/vtest.sh
index 6e1d8ca..fb55132 100755
--- a/tools/vtest.sh
+++ b/tools/vtest.sh
@@ -36,6 +36,9 @@ export MAKEFLAGS="${MAKEFLAGS:--j2}"
 export TMPDIR=`pwd`/tmp
 mkdir -p tmp
 
+# Try to make varnish own it, in case we run as root
+chown varnish tmp > /dev/null 2>&1 || true
+
 # Message to be shown in result pages
 # Max 10 char of [A-Za-z0-9/. _-]
 MESSAGE="${MESSAGE:-}"



More information about the varnish-commit mailing list