]> git.pld-linux.org Git - packages/autoconf.git/commitdiff
- patch which fix tmp race in autoconf.
authorkloczek <kloczek@pld-linux.org>
Mon, 25 Jan 1999 22:23:59 +0000 (22:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    autoconf-tmprace.patch -> 1.1

autoconf-tmprace.patch [new file with mode: 0644]

diff --git a/autoconf-tmprace.patch b/autoconf-tmprace.patch
new file mode 100644 (file)
index 0000000..0d1a9dc
--- /dev/null
@@ -0,0 +1,49 @@
+--- autoconf-2.12/autoconf.sh.race     Thu Aug 27 19:01:23 1998
++++ autoconf-2.12/autoconf.sh  Thu Aug 27 19:05:04 1998
+@@ -45,7 +45,7 @@
+ esac
+ : ${TMPDIR=/tmp}
+-tmpout=${TMPDIR}/acout.$$
++tmpout=`/bin/mktemp ${TMPDIR}/acout.XXXXXX`
+ localdir=
+ show_version=no
+@@ -97,10 +97,10 @@
+ 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
+--- autoconf-2.12/autoheader.sh.race   Thu Aug 27 19:05:19 1998
++++ autoconf-2.12/autoheader.sh        Thu Aug 27 19:08:18 1998
+@@ -194,9 +194,9 @@
+   # 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
+--- autoconf-2.12/autoupdate.sh.race   Thu Aug 27 19:09:12 1998
++++ autoconf-2.12/autoupdate.sh        Thu Aug 27 19:10:05 1998
+@@ -26,7 +26,7 @@
+ 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
This page took 0.221015 seconds and 4 git commands to generate.