From 3491dd8374a508ecec013f5fd0b7e6b007a3e6ce Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 28 Jul 2017 03:24:57 +0000 Subject: [PATCH] MFC r320445: Don't hardcode path to file in /tmp; this violates the kyua sandbox git-svn-id: svn://svn.freebsd.org/base/stable/10@321641 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- tests/sys/vfs/trailing_slash.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/sys/vfs/trailing_slash.sh b/tests/sys/vfs/trailing_slash.sh index b1b8523e9..255caf901 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 -- 2.45.0