diff options
Diffstat (limited to 'tests/cp/special-bits')
-rwxr-xr-x | tests/cp/special-bits | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/special-bits b/tests/cp/special-bits index 231ba0037..5b31fda0d 100755 --- a/tests/cp/special-bits +++ b/tests/cp/special-bits @@ -13,12 +13,12 @@ fi PRIV_CHECK_ARG=require-root . $srcdir/../priv-check pwd=`pwd` -tmp=spec-bits.$$ -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 touch a b || framework_failure=1 |