diff --git a/grep-2.5.1-color.patch b/grep-2.5.1-color.patch index 89cb6e9..f54c258 100644 --- a/grep-2.5.1-color.patch +++ b/grep-2.5.1-color.patch @@ -1,10 +1,10 @@ ---- grep-2.5.1/src/grep.c.color 2004-11-16 13:23:56.679753084 +0000 -+++ grep-2.5.1/src/grep.c 2004-11-16 13:23:52.400568021 +0000 -@@ -608,6 +608,7 @@ +--- grep-2.5.1/src/grep.c.color 2004-11-16 16:46:22.845505847 +0000 ++++ grep-2.5.1/src/grep.c 2004-11-16 16:46:27.961530537 +0000 +@@ -607,6 +607,7 @@ + fputs ("\33[00m", stdout); beg = b + match_size; } ++ fputs ("\33[K", stdout); } -+ fputs ("\33[K", stdout); fwrite (beg, 1, lim - beg, stdout); if (ferror (stdout)) - error (0, errno, _("writing output")); diff --git a/grep.spec b/grep.spec index a822b90..4db01e4 100644 --- a/grep.spec +++ b/grep.spec @@ -1,7 +1,7 @@ Summary: The GNU versions of grep pattern matching utilities. Name: grep Version: 2.5.1 -Release: 38 +Release: 39 License: GPL Group: Applications/Text Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.bz2 @@ -85,6 +85,9 @@ fi %{_mandir}/*/* %changelog +* Tue Nov 16 2004 Tim Waugh 2.5.1-39 +- Fixed last patch. + * Tue Nov 16 2004 Tim Waugh 2.5.1-38 - Applied patch from Karsten Hopp to fix background colour problems with --color output (bug #138913).