autoconf-2.12-race
authorAnas Nashif <anas.nashif@intel.com>
Sun, 18 Nov 2012 15:40:22 +0000 (07:40 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Sun, 18 Nov 2012 15:40:22 +0000 (07:40 -0800)
autoconf.sh
autoheader.sh
autoupdate.sh

index e6b0819fab30b18f8c3084c76097da301445fb0d..6db0ba264432b7fc2714cc0a52516c952aa0d5c0 100644 (file)
@@ -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
index 196c16df6930790a7f53c698061534aa13aae188..2ddfe7aa897b0ca8bdf497500c75deb82b76e900 100644 (file)
@@ -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 <<EOF
+   cat >> $fgrep_tmp <<EOF
 $syms
 EOF
    fgrep -f $fgrep_tmp
index c92e0237aa8f2e414eb06e4fc10b53d90cd2d354..968cd8faf838068480cabb34c2d8986f059e575a 100644 (file)
@@ -26,7 +26,7 @@ usage="\
 Usage: autoupdate [-h] [--help] [-m dir] [--macrodir=dir] 
        [--version] [template-file]" 
 
-sedtmp=/tmp/acups.$$
+sedtmp=`/bin/mktemp /tmp/acups.XXXXXX`
 # For debugging.
 #sedtmp=/tmp/acups
 show_version=no