util.c:Add mode when creating files in the wapi_save_config

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen 2024-03-14 21:08:50 +08:00 committed by Xiang Xiao
parent 62e2011e48
commit 4940303bd8

View File

@ -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;