diff options
author | Woongsuk Cho <ws77.cho@samsung.com> | 2023-11-28 20:42:47 +0900 |
---|---|---|
committer | 조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com> | 2023-11-28 20:45:36 +0900 |
commit | d9e95c0546846567de6774e28ffc511a63abaf33 (patch) | |
tree | a23a845513c700be7b9e0b319a47e8b98d40bed1 | |
parent | 3aa6696f982518f9cc1c27d42592779648924952 (diff) | |
download | launcher-d9e95c0546846567de6774e28ffc511a63abaf33.tar.gz launcher-d9e95c0546846567de6774e28ffc511a63abaf33.tar.bz2 launcher-d9e95c0546846567de6774e28ffc511a63abaf33.zip |
Check library extension moreaccepted/tizen/unified/20231130.180856accepted/tizen/8.0/unified/20231129.170829
To handle ".so.{number}" case, add more checking logic
-rw-r--r-- | NativeLauncher/tool/tac_common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NativeLauncher/tool/tac_common.cc b/NativeLauncher/tool/tac_common.cc index dcd5c1d..71623b3 100644 --- a/NativeLauncher/tool/tac_common.cc +++ b/NativeLauncher/tool/tac_common.cc @@ -439,7 +439,7 @@ std::vector<std::string> getLibrariesInfo(const std::string& rootPath) return LibrariesInfo; auto convert = [&LibrariesInfo](const std::string& filepath, const std::string& filename) { - if (filename.find(".so", filename.size() - 3) != std::string::npos) { + if (filename.find(".so", filename.size() - 3) != std::string::npos || filepath.rfind(".so.") != std::string::npos) { std::string buffer = SHA256(filepath); LibrariesInfo.push_back(filepath + ":" + buffer); _INFO("Library : [%s] / SHA256 : [%s]", filename.c_str(), buffer.c_str()); |