summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mkdir/perm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mkdir/perm b/tests/mkdir/perm
index 4b8cda5b6..cc5d15b27 100755
--- a/tests/mkdir/perm
+++ b/tests/mkdir/perm
@@ -8,8 +8,8 @@ if test "$VERBOSE" = yes; then
fi
pwd=`pwd`
-tmp=perm.$$
-trap 'status=$?; cd $pwd; chmod -R u+rwx $tmp; rm -rf $tmp && exit $status' 0
+t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
+trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
framework_failure=0