Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f68e542f authored by OGAWA Hirofumi's avatar OGAWA Hirofumi
Browse files

fat: Fix statfs->f_namelen

pathconf(, _PC_NAME_MAX) is too small for long Unicode filename on fat.

255 as max filename size on fat is Unicode UTF-16 characters.
it's not byte size.

https://bugzilla.kernel.org/show_bug.cgi?id=16469



To fix it, this returns "len * NLS_MAX_CHARSET_SIZE" instead.

Reported-by: default avatarTakumi Asaki <takumi.asaki@nokia.com>
Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
parent 869f58c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment