[PATCH v2 0/3] fs: fat: avoid invalid filenames
Heinrich Schuchardt
xypron.glpk at gmx.de
Thu Feb 4 08:35:20 CET 2021
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
More information about the U-Boot
mailing list