summaryrefslogtreecommitdiffstats
path: root/exclude.cc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--exclude.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/exclude.cc b/exclude.cc
index 1bdae6e..e435503 100644
--- a/exclude.cc
+++ b/exclude.cc
@@ -47,6 +47,7 @@ bool Exclude::excluded( const char * const filename )
while( *p )
{
for( unsigned i = 0; i < patterns.size(); ++i )
+ // ignore a trailing sequence starting with '/' in filename
#ifdef FNM_LEADING_DIR
if( fnmatch( patterns[i].c_str(), p, FNM_LEADING_DIR ) == 0 ) return true;
#else