1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-19 05:42:02 +02:00

exit-77 before the trap, not after, if we fail

to create a temporary directory on another partition.
This commit is contained in:
Jim Meyering
2005-12-07 08:08:08 +00:00
parent 45daa1a04d
commit 5dd8839716

View File

@@ -14,14 +14,15 @@ if test "$VERBOSE" = yes; then
setfacl --version
fi
if test -z "$other_partition_tmpdir"; then
(exit 77); exit 77
fi
pwd=`pwd`
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
if test -z "$other_partition_tmpdir"; then
(exit 77); exit 77
fi
t0="$t0 $other_partition_tmpdir"
framework_failure=0