Change-Id: Ib9acc695d5d931b7bdebe9d2d5812ebe565304bc
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
namespace {
+constexpr char kPrivSharedRes[] = "priv_shared_res";
+
fs::path GetRootPathForUid(uid_t uid) {
tzplatform_set_user(uid);
const char* rootpath = tzplatform_getenv(TZ_USER_HOME);
}
bool RemoveResForUid(const std::string& pkgid, uid_t uid) {
- fs::path target_path = GetRootPathForUid(uid) / pkgid;
+ fs::path target_path = GetRootPathForUid(uid) / kPrivSharedRes / pkgid;
- if (fs::exists(target_path))
+ if (!fs::exists(target_path))
return true;
if (!common_installer::RemoveAll(target_path))