bug-grep
[Top][All Lists]
Advanced

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

[bug #33965] --include broken (AGAIN)


From: Peter Clifton
Subject: [bug #33965] --include broken (AGAIN)
Date: Sun, 07 Aug 2011 12:13:58 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0

Follow-up Comment #1, bug #33965 (project grep):

A more plausible fix (which seems to work):

diff --git a/lib/exclude.c b/lib/exclude.c
index a68f3cb..8f8de35 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -355,7 +355,8 @@ excluded_file_pattern_p (struct exclude_segment const
*seg, char const *f)
   size_t exclude_count = seg->v.pat.exclude_count;
   struct patopts const *exclude = seg->v.pat.exclude;
   size_t i;
-  bool excluded = !! (exclude[0].options & EXCLUDE_INCLUDE);
+  int options = seg->options;
+  bool excluded = !! (options & EXCLUDE_INCLUDE);
 
   /* Scan through the options, until they change excluded */
   for (i = 0; i < exclude_count; i++)


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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