mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-10 07:20:11 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue