util.c:Add mode when creating files in the wapi_save_config
Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
parent
62e2011e48
commit
4940303bd8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user