yaffs direct: Fix opening of a directory.
authorCharles Manning <cdhmanning@gmail.com>
Mon, 3 Apr 2017 04:49:42 +0000 (16:49 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Mon, 3 Apr 2017 04:49:42 +0000 (16:49 +1200)
commit5e0db4930940ade57ea3bf3dce0d3db0362a9f0e
tree36753014bb245eb0ac5d698df8b9bbdfadf0ac23
parentc8f0255026354753fa51468c85346b4074af6c4f
yaffs direct: Fix opening of a directory.

If opening a directory using yaffs_open(), Yaffs Direct was checking
that the file was being opened with O_RDONLY.

In fact those flags should actually be ignored and it should be treated
as if opened O_RDONLY.

Therefore override flags if opening a directory.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffsfs.c