SOURCES: gzip-CAN-2005-0758.patch (NEW) - fixes CAN-2005-0758

blues blues at pld-linux.org
Tue Jun 13 23:55:32 CEST 2006


Author: blues                        Date: Tue Jun 13 21:55:32 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixes CAN-2005-0758

---- Files affected:
SOURCES:
   gzip-CAN-2005-0758.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gzip-CAN-2005-0758.patch
diff -u /dev/null SOURCES/gzip-CAN-2005-0758.patch:1.1
--- /dev/null	Tue Jun 13 23:55:32 2006
+++ SOURCES/gzip-CAN-2005-0758.patch	Tue Jun 13 23:55:27 2006
@@ -0,0 +1,29 @@
+--- zgrep.in
++++ zgrep.in
+@@ -24,7 +24,7 @@
+ 
+ PATH="BINDIR:$PATH"; export PATH
+ 
+-prog=`echo $0 | sed 's|.*/||'`
++prog=`echo "$0" | sed 's|.*/||'`
+ case "$prog" in
+        *egrep) grep=${EGREP-egrep -a}  ;;
+        *fgrep) grep=${FGREP-fgrep -a}  ;;
+@@ -112,12 +112,15 @@
+   fi
+   $uncompress -cdfq "$i" |
+     if test $files_with_matches -eq 1; then
+-      $grep $opt "$pat" > /dev/null && echo $i
++      $grep $opt "$pat" > /dev/null && printf "%s\n" "$i"
+     elif test $files_without_matches -eq 1; then
+-      $grep $opt "$pat" > /dev/null || echo $i
++      $grep $opt "$pat" > /dev/null || printf "%s\n" "$i"
+     elif test $with_filename -eq 0 && { test $# -eq 1 || test $no_filename -eq 1; }; then
+       $grep $opt "$pat"
+     else
++      i=${i//\\/\\\\}
++      i=${i//|/\\|}
++      i=${i//&/\\&}
+       if test $with_filename -eq 1; then
+        sed_script="s|^[^:]*:|${i}:|"
+       else
================================================================


More information about the pld-cvs-commit mailing list