]> git.baikalelectronics.ru Git - uboot.git/commit
fs: fat: handle "." and ".." of root dir correctly with fat_itr_resolve()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 11 Sep 2018 06:58:59 +0000 (15:58 +0900)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:29 +0000 (21:55 +0200)
commit7262b367ad9815e094fbdf20449eebe8946c793d
tree30d3e8bd33cc34ce7c20785a26ac513147dba36f
parent31eb9b9a511638ba43a638ac81cbd89e7a3cadd4
fs: fat: handle "." and ".." of root dir correctly with fat_itr_resolve()

FAT's root directory does not have "." nor ".."
So care must be taken when scanning root directory with fat_itr_resolve().
Without this patch, any file path starting with "." or ".." will not be
resolved at all.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
fs/fat/fat.c