]> www.infradead.org Git - users/willy/xarray.git/commit
ksmbd: handle caseless file creation
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 8 Sep 2024 06:23:48 +0000 (15:23 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 14 Sep 2024 05:03:15 +0000 (00:03 -0500)
commitc5a709f08d40b1a082e44ffcde1aea4d2822ddd5
tree1e2d9c50263bdc2fb4868afe420fca66fc06953f
parentca4974ca954561e79f8871d220bb08f14f64f57c
ksmbd: handle caseless file creation

Ray Zhang reported ksmbd can not create file if parent filename is
caseless.

Y:\>mkdir A
Y:\>echo 123 >a\b.txt
The system cannot find the path specified.
Y:\>echo 123 >A\b.txt

This patch convert name obtained by caseless lookup to parent name.

Cc: stable@vger.kernel.org # v5.15+
Reported-by: Ray Zhang <zhanglei002@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/vfs.c