Skip to content

Commit 40baf39

Browse files
paulmckrcuFrederic Weisbecker
authored and
Frederic Weisbecker
committed
torture: Make kvm-recheck.sh use mktemp
This commit switches from the old "/tmp/kvm-recheck.sh.$$" approach to the newer and now reliable "mktemp" approach. Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent d0b654e commit 40baf39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/rcutorture/bin/kvm-recheck.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# Authors: Paul E. McKenney <[email protected]>
1515

16-
T=/tmp/kvm-recheck.sh.$$
16+
T="`mktemp ${TMPDIR-/tmp}/kvm-recheck.sh.XXXXXX`"
1717
trap 'rm -f $T' 0 2
1818

1919
configerrors=0

0 commit comments

Comments
 (0)