]> git.sur5r.net Git - u-boot/commit
fs/fat: Fix pathnames using '..' that lead to the root directory
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Mon, 25 Sep 2017 19:06:33 +0000 (22:06 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2017 15:28:19 +0000 (11:28 -0400)
commit8df8731474467782c6126f41da87618bcb84852a
treec209c844a5b786814b0df4ee14f236844dac1adb
parentedce588a4541be6f0dee397f9b501b5569bbb892
fs/fat: Fix pathnames using '..' that lead to the root directory

If we end up back in the root directory via a '..' directory entry, set
itr->is_root accordingly. Failing to do that gives spews like
"Invalid FAT entry" and being unable to access directory entries located
past the first cluster of the root directory.

Fixes: 8eafae209c35 ("fat/fs: convert to directory iterators")
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
fs/fat/fat.c