From a2e113a2dbb974fa11d5ced540e4878344c7eb4a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Jun 2002 10:04:30 +0000 Subject: [PATCH] use trap stuff from sample-test --- tests/chmod/equal-x | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/chmod/equal-x b/tests/chmod/equal-x index e938dc0482..49f81f28e3 100755 --- a/tests/chmod/equal-x +++ b/tests/chmod/equal-x @@ -6,8 +6,8 @@ if test "$VERBOSE" = yes; then fi pwd=`pwd` -tmp=eq-x-$$ -trap 'status=$?; cd $pwd; chmod -R a+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 -- 2.47.3