diff options
-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; } } |