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/