yaffs_unlink(FILE_PATH);
EROFS_setup();
- handle = yaffs_open(FILE_PATH, O_CREAT | O_EXCL | O_TRUNC| O_RDWR ,FILE_MODE );
+ handle = yaffs_open(FILE_PATH, O_CREAT ,S_IREAD);
if (handle == -1){
error_code = yaffs_get_error();
if (abs(error_code) == EROFS){