diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-04-24 19:22:10 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-04-24 19:22:10 (GMT) |
commit | ae681dcff3bf19c0613b8dc885bd087c9ac77143 (patch) | |
tree | 36a799f1064edd04f944555fe383c8db25024748 | |
parent | cd90c207e30e1269ac6cc13e0ffa8b2d60a45f1d (diff) | |
download | hdf5-ae681dcff3bf19c0613b8dc885bd087c9ac77143.zip hdf5-ae681dcff3bf19c0613b8dc885bd087c9ac77143.tar.gz hdf5-ae681dcff3bf19c0613b8dc885bd087c9ac77143.tar.bz2 |
[svn-r5247] Purpose:
Bug Fix
Description:
If mktemp doesn't work, then it will wipe out the value in tmpdir.
Solution:
Reinitialize tmpdir if this occurs.
Platforms tested:
HP-UX
-rw-r--r-- | bin/ltmain.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ltmain.sh b/bin/ltmain.sh index 05c61ef..1cb786c 100644 --- a/bin/ltmain.sh +++ b/bin/ltmain.sh @@ -4354,6 +4354,8 @@ relink_command=\"$relink_command\"" tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` if test $? = 0 ; then : else + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" tmpdir="$tmpdir/libtool-$$" fi if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : |