[Top][All Lists]

[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: 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:


  Message sent via/by Savannah

reply via email to

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