From b27dfc4b30e21387b94222866c918e627d0e7799 Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Fri, 16 Feb 2018 11:46:46 +0300 Subject: [PATCH] Fix "include /foo/*.conf" for single matched object in directory --- src/utils/system.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/system.cc b/src/utils/system.cc index 1054b2eefe..a02d0aa9e3 100644 --- a/src/utils/system.cc +++ b/src/utils/system.cc @@ -75,7 +75,7 @@ std::string find_resource(const std::string& resource, delete iss; // What about `*' ? - if (utils::expandEnv(resource, 0).size() > 1) { + if (utils::expandEnv(resource, 0).size() > 0) { return resource; } else { err->append("'" + resource + "', "); @@ -94,7 +94,7 @@ std::string find_resource(const std::string& resource, delete iss; // What about `*' ? - if (utils::expandEnv(f, 0).size() > 1) { + if (utils::expandEnv(f, 0).size() > 0) { return f; } else { err->append("'" + f + "'.");