From: j-h.choi Date: Thu, 24 Aug 2023 00:52:30 +0000 (+0900) Subject: Check library extensions more accurately X-Git-Tag: accepted/tizen/unified/20230825.044242^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53496be35bc16fb8dcbd42674715e1c6ec8e4d16;p=platform%2Fcore%2Fdotnet%2Flauncher.git Check library extensions more accurately --- diff --git a/NativeLauncher/tool/tac_common.cc b/NativeLauncher/tool/tac_common.cc index 874b4b8..dcd5c1d 100644 --- a/NativeLauncher/tool/tac_common.cc +++ b/NativeLauncher/tool/tac_common.cc @@ -439,7 +439,7 @@ std::vector getLibrariesInfo(const std::string& rootPath) return LibrariesInfo; auto convert = [&LibrariesInfo](const std::string& filepath, const std::string& filename) { - if (filepath.rfind(".so") != std::string::npos) { + if (filename.find(".so", filename.size() - 3) != std::string::npos) { std::string buffer = SHA256(filepath); LibrariesInfo.push_back(filepath + ":" + buffer); _INFO("Library : [%s] / SHA256 : [%s]", filename.c_str(), buffer.c_str());