summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-12 15:06:09 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-12 15:06:09 +0000
commitbfc5f69816d9c8bd3ad91e51035081753effdb13 (patch)
tree4bac130cd70847edbd438eb6f4adf8ef4acc85f1 /app-arch/gzip/files
parentsh KEYWORDS (Manifest recommit) (diff)
downloadgentoo-2-bfc5f69816d9c8bd3ad91e51035081753effdb13.tar.gz
gentoo-2-bfc5f69816d9c8bd3ad91e51035081753effdb13.tar.bz2
gentoo-2-bfc5f69816d9c8bd3ad91e51035081753effdb13.zip
sh KEYWORDS
Diffstat (limited to 'app-arch/gzip/files')
-rw-r--r--app-arch/gzip/files/digest-gzip-1.3.3-r41
-rw-r--r--app-arch/gzip/files/gzip-1.3.3-security.patch91
2 files changed, 0 insertions, 92 deletions
diff --git a/app-arch/gzip/files/digest-gzip-1.3.3-r4 b/app-arch/gzip/files/digest-gzip-1.3.3-r4
deleted file mode 100644
index 8ee90a6f0a0d..000000000000
--- a/app-arch/gzip/files/digest-gzip-1.3.3-r4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 52eaf713673507d21f7abefee98ba662 gzip-1.3.3.tar.gz 312263
diff --git a/app-arch/gzip/files/gzip-1.3.3-security.patch b/app-arch/gzip/files/gzip-1.3.3-security.patch
deleted file mode 100644
index a54b7b0fc6ab..000000000000
--- a/app-arch/gzip/files/gzip-1.3.3-security.patch
+++ /dev/null
@@ -1,91 +0,0 @@
---- gzip-1.3.2.orig/znew.in
-+++ gzip-1.3.2/znew.in
-@@ -16,8 +16,8 @@
- warn="(does not preserve modes and timestamp)"
- tmp=/tmp/zfoo.$$
- set -C
--echo hi > $tmp.1
--echo hi > $tmp.2
-+echo hi > $tmp.1 || exit 1
-+echo hi > $tmp.2 || exit 1
- if test -z "`(${CPMOD-cpmod} $tmp.1 $tmp.2) 2>&1`"; then
- cpmod=${CPMOD-cpmod}
- warn=""
-
---- gzip-1.3.2.orig/gzexe.in 1998-09-17 20:43:06.000000000 -0400
-+++ gzip-1.3.2/gzexe.in 2004-06-23 18:20:31.840776483 -0400
-@@ -21,8 +21,10 @@
- exit 1
- fi
-
-+set -C
- tmp=gz$$
- trap "rm -f $tmp; exit 1" 1 2 3 5 10 13 15
-+: > $tmp || exit 1
-
- decomp=0
- res=0
-@@ -32,8 +34,8 @@
- shift
- fi
-
--echo hi > zfoo1$$
--echo hi > zfoo2$$
-+echo hi > zfoo1$$ || exit 1
-+echo hi > zfoo2$$ || exit 1
- if test -z "`(${CPMOD-cpmod} zfoo1$$ zfoo2$$) 2>&1`"; then
- cpmod=${CPMOD-cpmod}
- fi
-@@ -86,26 +88,28 @@
- writable=0
- chmod u+w $tmp 2>/dev/null
- fi
-+ : >| $tmp # truncate the file, ignoring set -C
- fi
- if test $decomp -eq 0; then
-- sed 1q $0 > $tmp
-+ sed 1q $0 >> $tmp
- sed "s|^if tail|if $tail|" >> $tmp <<'EOF'
--skip=22
-+skip=23
- set -C
- umask=`umask`
- umask 77
--if tail +$skip $0 | "BINDIR"/gzip -cd > /tmp/gztmp$$; then
-+tmpfile=`tempfile -p gztmp -d /tmp` || exit 1
-+if tail -n +$skip "$0" | /bin/gzip -cd >> $tmpfile; then
- umask $umask
-- /bin/chmod 700 /tmp/gztmp$$
-+ /bin/chmod 700 $tmpfile
- prog="`echo $0 | /bin/sed 's|^.*/||'`"
-- if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then
-- trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0
-- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null &
-+ if /bin/ln $tmpfile "/tmp/$prog" 2>/dev/null; then
-+ trap '/bin/rm -f $tmpfile "/tmp/$prog"; exit $res' 0
-+ (/bin/sleep 5; /bin/rm -f $tmpfile "/tmp/$prog") 2>/dev/null &
- /tmp/"$prog" ${1+"$@"}; res=$?
- else
-- trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0
-- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null &
-- /tmp/gztmp$$ ${1+"$@"}; res=$?
-+ trap '/bin/rm -f $tmpfile; exit $res' 0
-+ (/bin/sleep 5; /bin/rm -f $tmpfile) 2>/dev/null &
-+ $tmpfile ${1+"$@"}; res=$?
- fi
- else
- echo Cannot decompress $0; exit 1
-@@ -120,11 +124,11 @@
-
- else
- # decompression
-- skip=22
-+ skip=23
- if sed -e 1d -e 2q "$i" | grep "^skip=[0-9]*$" >/dev/null; then
- eval `sed -e 1d -e 2q "$i"`
- fi
-- if tail +$skip "$i" | gzip -cd > $tmp; then
-+ if tail -n +$skip "$i" | gzip -cd >> $tmp; then
- :
- else
- echo ${x}: $i probably not in gzexe format, file unchanged.