From: Anas Nashif Date: Sun, 18 Nov 2012 15:40:22 +0000 (-0800) Subject: autoconf-2.12-race X-Git-Tag: submit/tizen/20130503.183551~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39d099488e39650c06f60ac3a5ed2e0bd5d0be5f;p=platform%2Fupstream%2Fautoconf213.git autoconf-2.12-race --- diff --git a/autoconf.sh b/autoconf.sh index e6b0819..6db0ba2 100644 --- a/autoconf.sh +++ b/autoconf.sh @@ -45,7 +45,7 @@ case "${M4}" in esac : ${TMPDIR=/tmp} -tmpout=${TMPDIR}/acout.$$ +tmpout=`/bin/mktemp ${TMPDIR}/acout.XXXXXX` localdir= show_version=no @@ -97,10 +97,10 @@ esac trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15 -tmpin=${TMPDIR}/acin.$$ # Always set this, to avoid bogus errors from some rm's. +tmpin=`/bin/mktemp ${TMPDIR}/acin.XXXXXX` +# Always set this, to avoid bogus errors from some rm's. if test z$infile = z-; then infile=$tmpin - cat > $infile elif test ! -r "$infile"; then echo "autoconf: ${infile}: No such file or directory" >&2 exit 1 diff --git a/autoheader.sh b/autoheader.sh index 196c16d..2ddfe7a 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -194,9 +194,9 @@ if test -n "$syms"; then # Some fgrep's have limits on the number of lines that can be in the # pattern on the command line, so use a temporary file containing the # pattern. - (fgrep_tmp=${TMPDIR-/tmp}/autoh$$ + (fgrep_tmp=`/bin/mktemp ${TMPDIR-/tmp}/autoh$$.XXXXXX` trap "rm -f $fgrep_tmp; exit 1" 1 2 15 - cat > $fgrep_tmp <> $fgrep_tmp <