changeset 13086:538b96cce54a

exclude: fix the case of globs vs. EXCLUDE_INCLUDE * lib/exclude.c (excluded_file_pattern_p): Fix logic error that made it so grep -r --include=GLOB* ... did not work.
author Javier Villavicencio <the_paya@gentoo.org>
date Sun, 28 Mar 2010 20:42:01 +0200
parents fb5165836aea
children c51ed659983a
files ChangeLog lib/exclude.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
+
+	exclude: fix the case of globs vs. EXCLUDE_INCLUDE
+	* lib/exclude.c (excluded_file_pattern_p): Fix logic error that
+	made it so grep -r --include=GLOB* ... did not work.
+
 2010-03-26  Jim Meyering  <meyering@redhat.com>
 	    Eric Blake  <eblake@redhat.com>
 
--- a/lib/exclude.c
+++ b/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;