NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/39258: fgrep -w is broken



perry%piermont.com@localhost said:
> the fix is probably pretty small

Indeed. (See Gnu PR #1834, case 3.)

best regards
Matthias





-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
#
# old_revision [eceb464587f59fe70fb1d2c9814535a51dc23742]
#
# patch "gnu/dist/grep/src/search.c"
#  from [047c0488ed847d672b4b013a6542eac3aa32cc7b]
#    to [72bb67bd77c709409d4926a694ef120ade6a23e4]
#
============================================================
--- gnu/dist/grep/src/search.c  047c0488ed847d672b4b013a6542eac3aa32cc7b
+++ gnu/dist/grep/src/search.c  72bb67bd77c709409d4926a694ef120ade6a23e4
@@ -557,13 +557,7 @@ Fexecute (char const *buf, size_t size, 
              {
                offset = kwsexec (kwset, beg, --len, &kwsmatch);
                if (offset == (size_t) -1)
-                 {
-#ifdef MBS_SUPPORT
-                   if (MB_CUR_MAX > 1)
-                     free (mb_properties);
-#endif /* MBS_SUPPORT */
-                   return offset;
-                 }
+                 break;
                try = beg + offset;
                len = kwsmatch.size[0];
              }


Home | Main Index | Thread Index | Old Index