summaryrefslogtreecommitdiff
path: root/tests/cp/fail-perm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/fail-perm')
-rwxr-xr-xtests/cp/fail-perm6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm
index b6f745084..468b0c983 100755
--- a/tests/cp/fail-perm
+++ b/tests/cp/fail-perm
@@ -6,12 +6,12 @@ if test "$VERBOSE" = yes; then
fi
pwd=`pwd`
-tmp=fail-perm.$$
-trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
+t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
+trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
trap 'exit $?' 1 2 13 15
framework_failure=0
-mkdir $tmp || framework_failure=1
+mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
mkdir D || framework_failure=1