Mercurial > hg > octave-lojdl > gnulib-hg
changeset 13181:e679e2ee2308
init.sh: simply unset TMPDIR rather than risking env -i
* tests/init.sh (mktempd_): Using env -i is rather harsh, and
although it probably works fine on all Unix-based systems, some
systems (Cygwin?) cannot tolerate a totally cleared environment.
Suggestion from Eric Blake.
2010-04-06 Jim Meyering <meyering@redhat.com>
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 06 Apr 2010 19:24:57 +0200 |
parents | bc05d5eb950e |
children | 9e9ea06edda4 |
files | ChangeLog tests/init.sh |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-04-06 Jim Meyering <meyering@redhat.com> + + init.sh: simply unset TMPDIR rather than risking env -i + * tests/init.sh (mktempd_): Using env -i is rather harsh, and + although it probably works fine on all Unix-based systems, some + systems (Cygwin?) cannot tolerate a totally cleared environment. + Suggestion from Eric Blake. + 2010-04-06 Jim Meyering <meyering@redhat.com> init.sh: portability fix: use env's POSIX-specified -i option not -u
--- a/tests/init.sh +++ b/tests/init.sh @@ -306,7 +306,7 @@ fail=0 # First, try to use mktemp. - d=`env -i PATH="$PATH" mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ + d=`unset TMPDIR; mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ || fail=1 # The resulting name must be in the specified directory.