mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-03 21:29:05 +00:00
testing/monkey: add file permission settings
Add missing file permission setting, fix file read failure. Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
6d9259f334
commit
cb9cba8d3f
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ FAR struct monkey_recorder_s *monkey_recorder_create(FAR const char *path,
|
|||
oflag = O_RDONLY;
|
||||
}
|
||||
|
||||
fd = open(path_ptr, oflag);
|
||||
fd = open(path_ptr, oflag, 0666);
|
||||
if (fd < 0)
|
||||
{
|
||||
MONKEY_LOG_ERROR("open %s failed: %d", path_ptr, errno);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue