From 39d099488e39650c06f60ac3a5ed2e0bd5d0be5f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 18 Nov 2012 07:40:22 -0800 Subject: [PATCH] autoconf-2.12-race --- autoconf.sh | 6 +++--- autoheader.sh | 4 ++-- autoupdate.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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 <