From e6ae2a6925f058c83e8df3165ac42425d3136ca0 Mon Sep 17 00:00:00 2001 From: yangxin <245051644@qq.com> Date: Fri, 10 Feb 2023 14:20:49 +0000 Subject: [PATCH] Add third parameter to open. When open with O_CREAT, it need third parameter. Signed-off-by: yangxin <245051644@qq.com> --- qtfs/ipc/uds_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtfs/ipc/uds_main.c b/qtfs/ipc/uds_main.c index b479a60..ec9c13d 100644 --- a/qtfs/ipc/uds_main.c +++ b/qtfs/ipc/uds_main.c @@ -469,7 +469,7 @@ int uds_env_prepare() } else { closedir(dir); } - int fd = open(UDS_BUILD_CONN_ADDR, O_RDONLY|O_CREAT); + int fd = open(UDS_BUILD_CONN_ADDR, O_RDONLY|O_CREAT, 0700); if (fd < 0) { uds_err("create file:%s failed.", UDS_BUILD_CONN_ADDR); return EVENT_ERR; -- Gitee