aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-06-28 08:28:07 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-06-28 08:28:07 +0000
commit2b808adfb34e6ffb12cc2d52bb06ece5134dbfe4 (patch)
treeebb2ed16b90b9a4ce671bce63efd0c2d8dbfa6db /tests
parentde1abb9778080b99634eb41de79eb82b0c945b98 (diff)
downloadsrc-2b808adfb34e6ffb12cc2d52bb06ece5134dbfe4.tar.gz
src-2b808adfb34e6ffb12cc2d52bb06ece5134dbfe4.zip
Don't hardcode path to file in /tmp; this violates the kyua sandbox
MFC after: 1 month
Notes
Notes: svn path=/head/; revision=320445
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 b1b8523e93e2..255caf901605 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