From 41a6f8b7d3036708f36ea1b5bd5b8d4289428fe5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Dec 2020 10:22:57 +0200 Subject: Fix bug in config utility --- libbuild2/config/utility.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libbuild2') 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; } } -- cgit v1.1