diff options
| author | Heinrich Schuchardt <[email protected]> | 2020-11-21 12:34:20 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2020-11-29 05:18:16 +0100 |
| commit | a2c5a92d4865cea53de8a9297a4f4d115e6ac3b6 (patch) | |
| tree | 84e0ed19cd487b1cfb0001baccb648d5aaf8c22a | |
| parent | 661d2238688c25f676aa18a7f866ff1cd285ff3d (diff) | |
fs: fat: directory entries starting with 0x05
0x05 is used as replacement letter for 0xe5 at the first position of short
file names. We must not skip over directory entries starting with 0x05.
Cf. Microsoft FAT Specification, August 30 2005
Fixes: 39606d462c97 ("fs: fat: handle deleted directory entries correctly")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | fs/fat/fat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 28aa5aaa9ff..fb6ba894664 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -926,8 +926,7 @@ static int fat_itr_next(fat_itr *itr) if (!dent) return 0; - if (dent->name[0] == DELETED_FLAG || - dent->name[0] == aRING) + if (dent->name[0] == DELETED_FLAG) continue; if (dent->attr & ATTR_VOLUME) { |
