未验证 提交 dd66b3ad 编写于 作者: O openharmony_ci 提交者: Gitee

!340 modify: umask in init

Merge pull request !340 from 熊磊/init0224xyt
......@@ -80,9 +80,6 @@ static int SetPerms(const Service *service)
}
}
// umask call always succeeds and return the previous mask value which is not needed here
(void)umask(DEFAULT_UMASK_INIT);
struct __user_cap_header_struct capHeader;
capHeader.version = _LINUX_CAPABILITY_VERSION_3;
capHeader.pid = 0;
......
......@@ -91,6 +91,8 @@ static int FdHolderSockInit(void)
void SystemInit(void)
{
SignalInit();
// umask call always succeeds and return the previous mask value which is not needed here
(void)umask(DEFAULT_UMASK_INIT);
MakeDirRecursive("/dev/unix/socket", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
int sock = FdHolderSockInit();
if (sock >= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册