This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new cb9cba8d3 testing/monkey: add file permission settings
cb9cba8d3 is described below

commit cb9cba8d3f313fba77dd9308c85a4f13ffd3affb
Author: pengyiqiang <[email protected]>
AuthorDate: Thu Jun 29 13:33:39 2023 +0800

    testing/monkey: add file permission settings
    
    Add missing file permission setting, fix file read failure.
    
    Signed-off-by: pengyiqiang <[email protected]>
---
 testing/monkey/monkey_recorder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/monkey/monkey_recorder.c b/testing/monkey/monkey_recorder.c
index 228988204..261c0849c 100644
--- a/testing/monkey/monkey_recorder.c
+++ b/testing/monkey/monkey_recorder.c
@@ -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);

Reply via email to