Remove checking existance of shared/data directory 76/160376/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 15 Nov 2017 09:07:11 +0000 (18:07 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 16 Nov 2017 01:46:44 +0000 (01:46 +0000)
- Security context should be updated even if shared/data is existed.

Change-Id: I3e18ff55fa72523063b7283fb611c8fe7ce0665f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/step/filesystem/step_update_per_user_storage_directories.cc

index 850fba35cb350c2faa95c775f4289e0548110900..72935c6ebba0ed6e5dc849fd2fd846e88dedfaec 100644 (file)
@@ -47,11 +47,6 @@ common_installer::Step::Status RemoveSharedDir(const std::string& pkgid) {
 }
 
 common_installer::Step::Status CreateSharedDir(const std::string& pkgid) {
-  bf::path shareddir_path = bf::path(tzplatform_getenv(TZ_SYS_ETC)) /
-      bf::path(kSkelAppDir) / pkgid / kSharedDataDir;
-  if (bf::exists(shareddir_path))
-    return common_installer::Step::Status::OK;
-
   if (!common_installer::UpdateSkelDirectories(pkgid, false)) {
     LOG(ERROR) << "Failed to remove shared data directory";
     return common_installer::Step::Status::APP_DIR_ERROR;