bug-grep
[Top][All Lists]
Advanced

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

[bug #29358] segmentation fault in isdir1 with grep-2.6.1


From: Javier Villavicencio
Subject: [bug #29358] segmentation fault in isdir1 with grep-2.6.1
Date: Sun, 28 Mar 2010 18:11:17 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2) Gecko/20100327 Gentoo Firefox/3.6.2

Follow-up Comment #5, bug #29358 (project grep):

Try this little patch to exclude.c:

--- grep-2.6.1/lib/exclude.c.orig
+++ grep-2.6.1/lib/exclude.c
@@ -342,7 +342,7 @@
     {
       char const *pattern = exclude[i].pattern;
       int options = exclude[i].options;
-      if (excluded != exclude_fnmatch (pattern, f, options))
+      if (exclude_fnmatch (pattern, f, options))
         return !excluded;
     }
   return excluded;

If I got the logic right, then exclude_fnmatch() should return !excluded on
string match, not depending on if EXCLUDE_INCLUDE was set.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29358>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]