Fix StepRecoverChangeOwner
[platform/core/appfw/app-installers.git] / 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))