summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-07-28 03:25:01 +0000
committerngie <ngie@FreeBSD.org>2017-07-28 03:25:01 +0000
commit2fa735768f0f2a0a10f33d26ce99e93e6c8d0197 (patch)
treec479ebbbad6fe4348b52facb1874565c225eace4 /tests
parent7e83df1ec251bf08958f35b0714dcb0bee2d90a6 (diff)
downloadFreeBSD-src-2fa735768f0f2a0a10f33d26ce99e93e6c8d0197.zip
FreeBSD-src-2fa735768f0f2a0a10f33d26ce99e93e6c8d0197.tar.gz
MFC r320445:
Don't hardcode path to file in /tmp; this violates the kyua sandbox
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sys/vfs/trailing_slash.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/sys/vfs/trailing_slash.sh b/tests/sys/vfs/trailing_slash.sh
index b1b8523..255caf9 100755
--- a/tests/sys/vfs/trailing_slash.sh
+++ b/tests/sys/vfs/trailing_slash.sh
@@ -6,8 +6,9 @@
# point to files. See kern/21768 for details. Fixed in r193028.
#
-testfile="/tmp/testfile-$$"
-testlink="/tmp/testlink-$$"
+: ${TMPDIR=/tmp}
+testfile="$TMPDIR/testfile-$$"
+testlink="$TMPDIR/testlink-$$"
tests="
$testfile:$testlink:$testfile:0
OpenPOWER on IntegriCloud