Fix StepRecoverChangeOwner 04/276304/1
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 14 Jun 2022 07:44:48 +0000 (16:44 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Tue, 14 Jun 2022 07:47:47 +0000 (16:47 +0900)
To get user's app_rw directory
the parameter uid passed to GetRootAppPath should be user's uid

Change-Id: I1c9a30e1f3989b7b8ff70717c16fbe1c89f714d3
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/step/filesystem/step_recover_change_owner.cc

index 85177b7..ec7952a 100644 (file)
@@ -88,7 +88,7 @@ Step::Status StepRecoverChangeOwner::RecoveryUpdate() {
     for (auto l : list) {
       uid_t lu = std::get<0>(l);
       gid_t lg = std::get<1>(l);
-      bf::path owner_apps_rw = ci::GetRootAppPath(false, uid);
+      bf::path owner_apps_rw = ci::GetRootAppPath(false, lu);
       std::vector<bf::path> apps_rw_paths;
       apps_rw_paths.push_back(std::move(owner_apps_rw));
       for (auto& lw_user : GetLightUserList(uid))