]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(trap): Make sure the temporary hierarchy is writable before removing it.
authorJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 09:46:32 +0000 (09:46 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 09:46:32 +0000 (09:46 +0000)
tests/sample-test

index 104f83db8cc78fa510a039311cc11759b0aee96a..3af9e681957a166d2b38737c9ce8500fabf4dca7 100644 (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