diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-05-20 15:59:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-05-28 10:10:44 +0200 |
commit | 7d0cbd244d218bca8b806c283a5ae095f221b324 (patch) | |
tree | 4f6ca70bcc25cec76b5fd32555e4dfb23dda6692 /libbuild2/variable.cxx | |
parent | ff428efce81c7632724fd24028430523bb1e8fce (diff) |
Make notion of name pattern explicit, fix various related loose ends
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r-- | libbuild2/variable.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx index f9e60c1..451cb76 100644 --- a/libbuild2/variable.cxx +++ b/libbuild2/variable.cxx @@ -1820,8 +1820,7 @@ namespace build2 // if (pat != "*") { - if (name.size () < pat.size () - 1 || // One for '*' or '?'. - !butl::path_match (name, pat)) + if (!butl::path_match (name, pat)) continue; } |