diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-02 13:43:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-02 13:43:17 +0000 |
commit | eb90003443b90e8bf25ad115bf47b77b1f611138 (patch) | |
tree | ff12efdd21e72f240cab7ab8f93ead5e3df237d4 /app-arch/gzip/files | |
parent | old (diff) | |
download | historical-eb90003443b90e8bf25ad115bf47b77b1f611138.tar.gz historical-eb90003443b90e8bf25ad115bf47b77b1f611138.tar.bz2 historical-eb90003443b90e8bf25ad115bf47b77b1f611138.zip |
grab patch from fedora
Diffstat (limited to 'app-arch/gzip/files')
-rw-r--r-- | app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch b/app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch new file mode 100644 index 000000000000..c20403983ba9 --- /dev/null +++ b/app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch @@ -0,0 +1,21 @@ +Ripped from Fedora + +--- gzip-1.3.1/zgrep.in ++++ gzip-1.3.1/zgrep.in +@@ -92,6 +92,7 @@ + fi + + res=0 ++trap break SIGPIPE + for i do + gzip -cdfq "$i" | + if test $files_with_matches -eq 1; then +@@ -110,5 +111,8 @@ + fi + r=$? + test $res -lt $r && res=$r ++ # SIGPIPE + 128 ++ test "$r" -eq 141 && exit $res + done ++trap - SIGPIPE + exit $res |