From ca326994663bdc3263bf67b7ec9465ab30bb03ba Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 2 Jul 2005 13:43:17 +0000 Subject: grab patch from fedora --- app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch (limited to 'app-arch/gzip') 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 -- cgit v1.2.3-65-gdbad