mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 02:38:18 +00:00
wifisim: Open the bss file with O_RDONLY.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
parent
47b2e00d51
commit
06c1db81ff
1 changed files with 1 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ static int read_bss_config(FAR char *buf, size_t len, FAR char *path)
|
|||
struct file filep;
|
||||
int ret;
|
||||
|
||||
ret = file_open(&filep, path, O_RDWR);
|
||||
ret = file_open(&filep, path, O_RDONLY);
|
||||
if (ret < 0)
|
||||
{
|
||||
nerr("open error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue