From 4940303bd86af4c71941172e16de9f7c120dd4da Mon Sep 17 00:00:00 2001 From: wangchen Date: Thu, 14 Mar 2024 21:08:50 +0800 Subject: [PATCH] util.c:Add mode when creating files in the wapi_save_config Signed-off-by: wangchen --- wireless/wapi/src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireless/wapi/src/util.c b/wireless/wapi/src/util.c index 3812f10c6..d20fb3443 100644 --- a/wireless/wapi/src/util.c +++ b/wireless/wapi/src/util.c @@ -505,7 +505,7 @@ int wapi_save_config(FAR const char *ifname, goto errout; } - fd = open(confname, O_RDWR | O_CREAT | O_TRUNC); + fd = open(confname, O_RDWR | O_CREAT | O_TRUNC, 0644); if (fd < 0) { ret = -errno;