summaryrefslogtreecommitdiff
path: root/lib/exclude.c
diff options
context:
space:
mode:
authorJavier Villavicencio <the_paya@gentoo.org>2010-03-28 20:42:01 +0200
committerJim Meyering <meyering@redhat.com>2010-03-28 20:50:42 +0200
commit6207255863f1fb5172ead8b03cda5e4b0b7336a4 (patch)
tree263522a0dc6e703088a7328fb0ea5c514c6b19a8 /lib/exclude.c
parenta69383361372107681975a9af73d9a4059e8d178 (diff)
downloadgnulib-6207255863f1fb5172ead8b03cda5e4b0b7336a4.tar.gz
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.
Diffstat (limited to 'lib/exclude.c')
-rw-r--r--lib/exclude.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exclude.c b/lib/exclude.c
index d4dcd76bd9..34b5636711 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -342,7 +342,7 @@ excluded_file_pattern_p (struct exclude_segment const *seg, char const *f)
{
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;