diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-02 10:22:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-02 10:22:57 +0200 |
commit | 41a6f8b7d3036708f36ea1b5bd5b8d4289428fe5 (patch) | |
tree | 7b8fae43727b0897eaf28d625cd59b4ebfb10a65 | |
parent | 4baebfcd64066c94a2a814d784f0973ef5ee9b6a (diff) |
Fix bug in config utility
-rw-r--r-- | libbuild2/config/utility.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/config/utility.cxx b/libbuild2/config/utility.cxx index 75c9de9..f777c08 100644 --- a/libbuild2/config/utility.cxx +++ b/libbuild2/config/utility.cxx @@ -111,8 +111,9 @@ namespace build2 // Ignore config.*.configured and user-supplied names. // - if (!match_tail ("configured") && - find_if (ig.begin (), ig.end (), match_tail) == ig.end ()) + if (v->name.size () <= ns.name.size () || + (!match_tail ("configured") && + find_if (ig.begin (), ig.end (), match_tail) == ig.end ())) return true; } } |