summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/netns/0001nft-f_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/netns/0001nft-f_0')
-rwxr-xr-xtests/shell/testcases/netns/0001nft-f_08
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/shell/testcases/netns/0001nft-f_0 b/tests/shell/testcases/netns/0001nft-f_0
index 721444a6..e616363e 100755
--- a/tests/shell/testcases/netns/0001nft-f_0
+++ b/tests/shell/testcases/netns/0001nft-f_0
@@ -8,13 +8,7 @@ if [ ! -x "$IP" ] ; then
exit 1
fi
-MKTEMP=$(which mktemp)
-if [ -x $MKTEMP ] ; then
- tmpfile=$(${MKTEMP})
-else
- tmpfile=$(/tmp/${RANDOM})
-fi
-
+tmpfile=$(mktemp)
if [ ! -w $tmpfile ] ; then
echo "Failed to create tmp file" >&2
exit 0