- Fixed a bug in the fgrep patch, exposed by the dfa-optional patch (bug
#138558).
This commit is contained in:
parent
8c440df2d2
commit
41ed4935a4
@ -64,16 +64,3 @@
|
||||
goto success_in_beg_and_end;
|
||||
}
|
||||
else
|
||||
@@ -450,7 +475,11 @@
|
||||
if ((start == 0 || !WCHAR ((unsigned char) beg[start - 1]))
|
||||
&& (len == end - beg - 1
|
||||
|| !WCHAR ((unsigned char) beg[start + len])))
|
||||
- goto success_in_start_and_len;
|
||||
+ {
|
||||
+ if (len == 0)
|
||||
+ len++;
|
||||
+ goto success_in_start_and_len;
|
||||
+ }
|
||||
if (len > 0)
|
||||
{
|
||||
/* Try a shorter length anchored at the same place. */
|
||||
|
@ -56,7 +56,7 @@
|
||||
&& (len == end - beg - 1
|
||||
|| !WCHAR ((unsigned char) beg[start + len])))
|
||||
- goto success;
|
||||
+ goto success_in_start_and_len;
|
||||
+ goto success_in_beg_and_end;
|
||||
if (len > 0)
|
||||
{
|
||||
/* Try a shorter length anchored at the same place. */
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: The GNU versions of grep pattern matching utilities.
|
||||
Name: grep
|
||||
Version: 2.5.1
|
||||
Release: 39
|
||||
Release: 40
|
||||
License: GPL
|
||||
Group: Applications/Text
|
||||
Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.bz2
|
||||
@ -85,6 +85,10 @@ fi
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Thu Nov 18 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-40
|
||||
- Fixed a bug in the fgrep patch, exposed by the dfa-optional patch
|
||||
(bug #138558).
|
||||
|
||||
* Tue Nov 16 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-39
|
||||
- Fixed last patch.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user