summaryrefslogtreecommitdiff
path: root/system/bzip2/bzip2-1.0.4-POSIX-shell.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-07-24 05:12:56 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-07-24 05:12:56 +0000
commit6574a30b9b98a3464ff4cebe381b3732a8dabfc3 (patch)
tree3111303ee53fc28d8203494e91b3e329f4eb0b1a /system/bzip2/bzip2-1.0.4-POSIX-shell.patch
parent57ff2ddb06504d45f242b922d5f14e7ecaf1e534 (diff)
parent0dec8e672d9f4dcf03494c0a85b4296ea30c56b7 (diff)
downloadpackages-6574a30b9b98a3464ff4cebe381b3732a8dabfc3.tar.gz
packages-6574a30b9b98a3464ff4cebe381b3732a8dabfc3.tar.bz2
packages-6574a30b9b98a3464ff4cebe381b3732a8dabfc3.tar.xz
packages-6574a30b9b98a3464ff4cebe381b3732a8dabfc3.zip
Merge branch 'cves.for.20190723' into 'master'
CVE patches for 2019-07-23 See merge request adelie/packages!298
Diffstat (limited to 'system/bzip2/bzip2-1.0.4-POSIX-shell.patch')
-rw-r--r--system/bzip2/bzip2-1.0.4-POSIX-shell.patch21
1 files changed, 0 insertions, 21 deletions
diff --git a/system/bzip2/bzip2-1.0.4-POSIX-shell.patch b/system/bzip2/bzip2-1.0.4-POSIX-shell.patch
deleted file mode 100644
index a5916eaff..000000000
--- a/system/bzip2/bzip2-1.0.4-POSIX-shell.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-bzgrep uses !/bin/sh but then uses the bashism ${var//} so replace those
-with calls to sed so POSIX shells work
-
-http://bugs.gentoo.org/193365
-
---- ./bzgrep
-+++ ./bzgrep
-@@ -63,10 +63,9 @@
- bzip2 -cdfq "$i" | $grep $opt "$pat"
- r=$?
- else
-- j=${i//\\/\\\\}
-- j=${j//|/\\|}
-- j=${j//&/\\&}
-- j=`printf "%s" "$j" | tr '\n' ' '`
-+ # the backslashes here are doubled up as we have to escape each one for the
-+ # shell and then escape each one for the sed expression
-+ j=`printf "%s" "${i}" | sed -e 's:\\\\:\\\\\\\\:g' -e 's:[|]:\\\\|:g' -e 's:[&]:\\\\&:g' | tr '\n' ' '`
- bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
- r=$?
- fi