
4 Feb
2021
4 Feb
'21
8:35 a.m.
The FAT32 File System Specification requires leading and trailing spaces as well as trailing periods of long names to be ignored.
Up to now U-Boot could create files with invalid file names violating the restriction above.
With the patches this is avoided.
v2: Change the separation of duties between split_filename() and normalize_longname(): split_filename() may return '.' and '..'.
Heinrich Schuchardt (3): fs: fat: usage basename in file_fat_write_at, fat_mkdir fs: fat: must not write directory '.' and '..' fs: fat: remove trailing periods from long name
fs/fat/fat_write.c | 70 +++++++++++++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 26 deletions(-)
-- 2.30.0