diff --git a/es-core/src/utils/FileSystemUtil.cpp b/es-core/src/utils/FileSystemUtil.cpp index 471abeec2..095773a52 100644 --- a/es-core/src/utils/FileSystemUtil.cpp +++ b/es-core/src/utils/FileSystemUtil.cpp @@ -263,7 +263,8 @@ namespace Utils for (auto it = pathList.cbegin(); it != pathList.cend(); ++it) { pathTest = it->c_str() + ("/" + executable); - if (exists(pathTest)) + if (Utils::FileSystem::isRegularFile(pathTest) || + Utils::FileSystem::isSymlink(pathTest)) return it->c_str(); } return "";