fix problem of inconsistent of gid

Signed-off-by: s00494828 <shilei91@huawei.com>
Change-Id: Idde0af063564cbdcf7eb3b26f50af098e08a6ed3
This commit is contained in:
s00494828
2022-05-11 11:22:00 +08:00
parent ae5cf79b8d
commit 0d1098c434
@@ -113,6 +113,7 @@ ErrCode BundleSandboxInstaller::InstallSandboxApp(const std::string &bundleName,
// 6. create data dir and generate uid and gid
userInfo.bundleName = bundleName_ + Constants::FILE_UNDERLINE + std::to_string(newAppIndex);
userInfo.gids.clear();
dataMgr_->GenerateUidAndGid(userInfo);
userInfo.bundleName = bundleName_;
info.AddInnerBundleUserInfo(userInfo);