]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: fat: convert change month correctly
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 9 Apr 2024 18:04:56 +0000 (20:04 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 17 Apr 2024 23:06:04 +0000 (17:06 -0600)
commit3c1bc9f15c18149a26fbd7f604f76f949a29bc7d
tree83f2cafddff9f29715eae9c5128ca4a192ddb53d
parent7c665e151246cf8b5072ca4f1916f8ed0fa8565c
fs: fat: convert change month correctly

The month is stored in 5 - 8. We need to shift it by 5 bits.

Cf. Microsoft FAT Specification, 2005-08-30

Fixes: 13c11c665320 ("fs: fat: add file attributes to struct fs_dirent")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Alexander Dahl <ada@thorsis.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
fs/fat/fat.c