]> git.hungrycats.org Git - linux/commit
[PATCH] FAT: Fix the tailing dots on the utf8 path (2/10)
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:45:07 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:45:07 +0000 (23:45 -0800)
commite8f2950f6de20ccfe8a836814cf94229c78aa3bb
tree2acdd1e0786608e130388f1e5af5f702bf93da97
parentf17963eefbd34f92d4901dc5eef197cdc43242ed
[PATCH] FAT: Fix the tailing dots on the utf8 path (2/10)

From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Michal Rokos <m.rokos@sh.cvut.cz>

The problem is: even if vfat_striptail_len() counts len of name without
trailing dots and sets len to the correct value, utf8_mbstowcs() doesn't
care about len and takes whole name.  So dirs and files with dots can be
created on vfat fs.
fs/nls/nls_base.c
fs/vfat/namei.c