summaryrefslogtreecommitdiff
path: root/tests/cp/dir-vs-file
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/dir-vs-file')
-rwxr-xr-xtests/cp/dir-vs-file6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/dir-vs-file b/tests/cp/dir-vs-file
index c141ed18b..9ac6bd0d6 100755
--- a/tests/cp/dir-vs-file
+++ b/tests/cp/dir-vs-file
@@ -9,12 +9,12 @@ fi
. $srcdir/../envvar-check
pwd=`pwd`
-tmp=dirvfile.$$
-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 $?); 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 dir || framework_failure=1