[PATCH v2 2/3] fs: fat: must not write directory '.' and '..'
Simon Glass
sjg at chromium.org
Sat Feb 6 17:12:14 CET 2021
On Thu, 4 Feb 2021 at 00:40, Heinrich Schuchardt <xypron.glpk at gmx.de> 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 <xypron.glpk at gmx.de>
> ---
> v2:
> check for file length 0, simplify check for invalid file names
> ---
> fs/fat/fat_write.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list