1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

(trap): Make sure the temporary hierarchy is writable before removing it.

This commit is contained in:
Jim Meyering
2002-06-15 09:46:32 +00:00
parent 59f339c1f8
commit bf7c8ba557

View File

@@ -13,7 +13,7 @@ fi
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
trap 'status=$?; cd $pwd; chmod -R 700 $t0; rm -rf $t0 && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
framework_failure=0