From 9a08cfb23c1b678ce72f7e864897310dfc7b86b4 Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 15 Jan 2000 07:38:56 +0000 Subject: Secure tempfile generation Obtained from: OpenBSD No Response From: Maintainer --- devel/autoconf26/files/patch-ad | 21 +++++++++++++++++++++ devel/autoconf26/files/patch-ae | 11 +++++++++++ devel/autoconf26/files/patch-af | 20 ++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 devel/autoconf26/files/patch-ad create mode 100644 devel/autoconf26/files/patch-ae create mode 100644 devel/autoconf26/files/patch-af (limited to 'devel/autoconf26') diff --git a/devel/autoconf26/files/patch-ad b/devel/autoconf26/files/patch-ad new file mode 100644 index 0000000..f8a4d1a --- /dev/null +++ b/devel/autoconf26/files/patch-ad @@ -0,0 +1,21 @@ +--- autoconf.sh.orig Mon Nov 22 21:47:28 1999 ++++ autoconf.sh Mon Nov 22 21:49:50 1999 +@@ -45,7 +45,7 @@ + esac + + : ${TMPDIR=/tmp} +-tmpout=${TMPDIR}/acout.$$ ++tmpout=`mktemp ${TMPDIR}/acout.XXXXXXXXXX` || exit 1 + localdir= + show_version=no + +@@ -97,7 +97,8 @@ + + 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=`mktemp ${TMPDIR}/acin.XXXXXXXXXX` || { rm -f $tmpout; exit 1; } ++# Always set this, to avoid bogus errors from some rm's. + if test z$infile = z-; then + infile=$tmpin + cat > $infile diff --git a/devel/autoconf26/files/patch-ae b/devel/autoconf26/files/patch-ae new file mode 100644 index 0000000..87e6102 --- /dev/null +++ b/devel/autoconf26/files/patch-ae @@ -0,0 +1,11 @@ +--- autoheader.sh.orig Mon Nov 22 21:50:45 1999 ++++ autoheader.sh Mon Nov 22 21:52:02 1999 +@@ -194,7 +194,7 @@ + # 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=`mktemp ${TMPDIR-/tmp}/autoh.XXXXXXXXXX` || exit 1 + trap "rm -f $fgrep_tmp; exit 1" 1 2 15 + cat > $fgrep_tmp <