aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/functions-filesystem.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-19 17:43:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-27 18:29:19 +0300
commitc595aac0142436f64ada4f5412b821bfcc6db008 (patch)
treef0b20b290a52cba6f01cb07df7b9734941fad050 /libbuild2/functions-filesystem.cxx
parent28d1791e2dc66cc610468deb29ea030e28d0793c (diff)
Adapt to bracket expressions in wildcard patterns
Diffstat (limited to 'libbuild2/functions-filesystem.cxx')
-rw-r--r--libbuild2/functions-filesystem.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/libbuild2/functions-filesystem.cxx b/libbuild2/functions-filesystem.cxx
index 2fcd305..d0861ba 100644
--- a/libbuild2/functions-filesystem.cxx
+++ b/libbuild2/functions-filesystem.cxx
@@ -93,10 +93,7 @@ namespace build2
bool rel (pattern.relative () == entry.relative () &&
!pattern.empty () && !entry.empty ());
- bool self (!pattern.empty () &&
- (*pattern.begin ()).find ("***") != string::npos);
-
- if (rel && !self)
+ if (rel && !path_pattern_self_matching (pattern))
return path_match (pattern, entry);
// The start directory must be specified and be absolute.