diff options
Diffstat (limited to 'sys-devel/libtool/files/1.4.3/libtool-1.3.5-mktemp.patch')
-rw-r--r-- | sys-devel/libtool/files/1.4.3/libtool-1.3.5-mktemp.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-devel/libtool/files/1.4.3/libtool-1.3.5-mktemp.patch b/sys-devel/libtool/files/1.4.3/libtool-1.3.5-mktemp.patch new file mode 100644 index 000000000000..d6f4253f412d --- /dev/null +++ b/sys-devel/libtool/files/1.4.3/libtool-1.3.5-mktemp.patch @@ -0,0 +1,15 @@ +--- libtool-1.3.5/ltmain.in.mktemp Fri Jul 7 18:49:44 2000 ++++ libtool-1.3.5/ltmain.in Fri May 26 21:53:15 2000 +@@ -3462,7 +3462,11 @@ + if test "$finalize" = yes && test -z "$run"; then + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" +- tmpdir="$tmpdir/libtool-$$" ++ tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` ++ if test $? = 0 ; then : ++ else ++ tmpdir="$tmpdir/libtool-$$" ++ fi + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : + else + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 |