testing/monkey: add file permission settings
Add missing file permission setting, fix file read failure.
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
diff --git a/testing/monkey/monkey_recorder.c b/testing/monkey/monkey_recorder.c
index 2289882..261c084 100644
--- a/testing/monkey/monkey_recorder.c
+++ b/testing/monkey/monkey_recorder.c
@@ -157,7 +157,7 @@
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);