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)
commitb94b6be543c24ce8ce5debececb0af0708fbd97f
tree30d3e8bd33cc34ce7c20785a26ac513147dba36f
parentf23101f9513064efa716a132b114b2c2748b7823
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