diff --git a/src/Utils.cc b/src/Utils.cc index 5e1c9f245..28e41c00d 100644 --- a/src/Utils.cc +++ b/src/Utils.cc @@ -14,6 +14,7 @@ * limitations under the License. * */ +#include #include #include #include @@ -390,7 +391,9 @@ std::string resolveURI(const std::string &_inputURI, if (_config.StoreResolvedURIs()) { std::string sep("://"); - if (!_searchPaths.empty() && _inputURI.find(sep) == std::string::npos) + if (!_searchPaths.empty() && + _inputURI.find(sep) == std::string::npos && + !std::filesystem::path(_inputURI).is_absolute()) { for (const auto &sp : _searchPaths) {