mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-23 07:09:53 +00:00
fix: update mode
Signed-off-by: zhrenqiang <zhangrenqiang@huawei.com> Change-Id: Ia9e2af89a72a4f5be3d2581855459e7ff7eb3676
This commit is contained in:
parent
6bcd0b4c6f
commit
65be459662
@ -478,7 +478,7 @@ ErrCode InstalldHostImpl::CreateBundleDataDir(const CreateDirParam &createDirPar
|
||||
return ERR_OK;
|
||||
}
|
||||
// create base extension dir
|
||||
int mode = createDirParam.debug ? (S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) : S_IRWXU;
|
||||
int mode = createDirParam.debug ? (S_IRWXU | S_IRWXG | S_IRWXO) : S_IRWXU;
|
||||
if (CreateExtensionDir(createDirParam, bundleDataDir, mode, createDirParam.gid) != ERR_OK) {
|
||||
LOG_W(BMS_TAG_INSTALLD, "create extension dir failed, parent dir %{public}s", bundleDataDir.c_str());
|
||||
}
|
||||
@ -492,7 +492,6 @@ ErrCode InstalldHostImpl::CreateBundleDataDir(const CreateDirParam &createDirPar
|
||||
InstalldOperator::RmvDeleteDfx(bundleDataDir);
|
||||
if (el == ServiceConstants::BUNDLE_EL[1]) {
|
||||
for (const auto &dir : BUNDLE_DATA_DIR) {
|
||||
int mode = createDirParam.debug ? (S_IRWXU | S_IRGRP | S_IXGRP) : S_IRWXU;
|
||||
if (!InstalldOperator::MkOwnerDir(bundleDataDir + dir, mode,
|
||||
createDirParam.uid, createDirParam.gid)) {
|
||||
LOG_E(BMS_TAG_INSTALLD, "CreateBundledatadir MkOwnerDir el2 failed errno:%{public}d", errno);
|
||||
@ -1746,7 +1745,7 @@ ErrCode InstalldHostImpl::CreateExtensionDataDir(const CreateDirParam &createDir
|
||||
bundleDataDir.c_str(), createDirParam.bundleName.c_str());
|
||||
return ERR_OK;
|
||||
}
|
||||
int mode = createDirParam.debug ? (S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) : S_IRWXU;
|
||||
int mode = createDirParam.debug ? (S_IRWXU | S_IRWXG | S_IRWXO) : S_IRWXU;
|
||||
if (CreateExtensionDir(createDirParam, bundleDataDir, mode, createDirParam.gid) != ERR_OK) {
|
||||
LOG_W(BMS_TAG_INSTALLD, "create extension dir failed, parent dir %{public}s", bundleDataDir.c_str());
|
||||
return ERR_APPEXECFWK_INSTALLD_CREATE_DIR_FAILED;
|
||||
|
Loading…
Reference in New Issue
Block a user