From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heinrich Schuchardt Date: Sun, 31 Jan 2021 00:09:49 +0100 Subject: [PATCH 0/4] fs: fat: code clean up Message-ID: <20210130230953.307517-1-xypron.glpk@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de With the series paths with trailing periods like '/foo/a...' do no lead to creating files and directories with invalid names. Duplicate code is carved out into a new function. Patch 1/4 is resent to indicate import sequence. Heinrich Schuchardt (4): fs: fat: usage basename in file_fat_write_at, fat_mkdir fs: fat: must not write directory '.' and '..' fs: fat: carve out fat_create_dir_entry() fs: fat: remove trailing periods from long name fs/fat/fat_write.c | 131 ++++++++++++++++++++------------------------- 1 file changed, 57 insertions(+), 74 deletions(-) -- 2.29.2