Re: [PATCH v2 2/3] fs: fat: must not write directory '.' and '..'

2021-02-06 Thread Simon Glass
On Thu, 4 Feb 2021 at 00:40, Heinrich Schuchardt wrote: > > Directories or files called '.' or '..' cannot be created or written to > in any directory. Move the test to normalize_longname() to check this > early. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > check for file length 0

[PATCH v2 2/3] fs: fat: must not write directory '.' and '..'

2021-02-03 Thread Heinrich Schuchardt
Directories or files called '.' or '..' cannot be created or written to in any directory. Move the test to normalize_longname() to check this early. Signed-off-by: Heinrich Schuchardt --- v2: check for file length 0, simplify check for invalid file names --- fs/fat/fat_write.c | 13 +++--