From: Ulrich Drepper Date: Wed, 13 Feb 2002 22:55:28 +0000 (+0000) Subject: Honor TMPDIR. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec7ffb489dc1bdd64e97e163aca78a7e60dba28;p=thirdparty%2Fglibc.git Honor TMPDIR. --- diff --git a/glibcbug.in b/glibcbug.in index db986b9e87d..b83e2bd4753 100644 --- a/glibcbug.in +++ b/glibcbug.in @@ -23,15 +23,15 @@ BUILD_BOUNDED="@bounded@" BUILD_STATIC_NSS="@static_nss@" STDIO="@stdio@" -TEMP=`mktemp -q /tmp/glibcbugXXXXXX 2>/dev/null` +TEMP=`mktemp -q ${TMPDIR-/tmp}/glibcbugXXXXXX 2>/dev/null` if test $? -ne 0; then - TEMP=/tmp/glibcbug.$$ + TEMP={$TMPDIR-/tmp}/glibcbug.$$ echo > $TEMP chmod 600 $TEMP fi -TEMPx=`mktemp -q /tmp/glibcbugXXXXXX 2>/dev/null` +TEMPx=`mktemp -q ${TMPDIR-/tmp}/glibcbugXXXXXX 2>/dev/null` if test $? -ne 0; then - TEMPx=/tmp/glibcbug.$$.x + TEMPx=${TMPDIR-/tmp}/glibcbug.$$.x echo > $TEMPx chmod 600 $TEMPx fi