summaryrefslogtreecommitdiffstats
path: root/exclude.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-10-13 09:09:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-10-13 09:09:47 +0000
commit4df170936f7f58b339410b3d112ecf6b112319ab (patch)
tree3342e916fd60a5ccb8e50461b52d824930b072dd /exclude.cc
parentAdding upstream version 0.15. (diff)
downloadtarlz-4df170936f7f58b339410b3d112ecf6b112319ab.tar.xz
tarlz-4df170936f7f58b339410b3d112ecf6b112319ab.zip
Adding upstream version 0.16.upstream/0.16
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'exclude.cc')
-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