other组权问题修改回退

Signed-off-by: zhangxinyu <zhangxinyu74@huawei.com>
Change-Id: I42da17eefd797a24ecc5d1783806ee10db24c11f
This commit is contained in:
zhangxinyu
2023-05-24 12:21:19 +00:00
parent 537de5cd96
commit e3ad7423e1
@@ -68,7 +68,7 @@ bool BundleFileUtils::MkRecursiveDir(const char *dir, bool isReadOthers)
for (size_t i = 0; i < len; ++i) {
rootDir[i] = dir[i];
if ((rootDir[i] == PATH_SEPARATOR || i == (len - 1)) && !IsExistDir(rootDir)) {
mode_t mode = S_IRWXU | S_IRWXG;
mode_t mode = S_IRWXU | S_IRWXG | S_IXOTH;
mode |= (isReadOthers ? S_IROTH : 0);
if (mkdir(rootDir, mode) < 0) {
return false;