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)
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>

No differences found