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

!283 fix:修复 open 函数flags 中有O_CREAT ,需要添加mode的问题

Merge pull request !283 from 熊磊/init128_1
......@@ -58,7 +58,7 @@ int main(int argc, char **argv)
ProcessUevent(ueventSockFd, NULL, 0); // Not require boot devices
}
}
int fd = open(UEVENTD_FLAG, O_RDWR | O_CREAT);
int fd = open(UEVENTD_FLAG, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
if (fd < 0) {
INIT_LOGE("Failed to create ueventd flag!");
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册