From 2b808adfb34e6ffb12cc2d52bb06ece5134dbfe4 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Wed, 28 Jun 2017 08:28:07 +0000 Subject: [PATCH] Don't hardcode path to file in /tmp; this violates the kyua sandbox MFC after: 1 month --- 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 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