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:22:43 +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 #6, bug #29358 (project grep):

I forgot, this one to main.c, manpage reads:

--include=GLOB
       Search  only  files whose base name matches GLOB (using wildcard
       matching as described under --exclude).

Which currently doesn't happens unless EXCLUDE_WILDCARDS is also on
add_exclude() options:

--- grep-2.6.1/src/main.c.orig
+++ grep-2.6.1/src/main.c
@@ -2066,7 +2066,7 @@
       case INCLUDE_OPTION:
        if (!included_patterns)
          included_patterns = new_exclude ();
-       add_exclude (included_patterns, optarg, EXCLUDE_INCLUDE);
+       add_exclude (included_patterns, optarg, EXCLUDE_INCLUDE |
EXCLUDE_WILDCARDS);
        break;
 
       case GROUP_SEPARATOR_OPTION:


    _______________________________________________________

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]