]> git.baikalelectronics.ru Git - uboot.git/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)
commite8c6040d5f46d24e3c63216e8b59b059e88dc2e5
treec209c844a5b786814b0df4ee14f236844dac1adb
parentbd448bf5a25adc10ebe1117d936fba59d422a753
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: 45b38678814a ("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