]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: handle caseless file creation
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 8 Sep 2024 06:23:48 +0000 (15:23 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:48 +0000 (16:29 +0200)
commit6ab95e27b77730de3fa2d601db3764490c5eede2
tree1ad04e2c89a7c19d1ebb141d2b9bfb0aceb9ed1b
parent30fe2a885c28a1c97343c324948f2aca88f8c268
ksmbd: handle caseless file creation

commit c5a709f08d40b1a082e44ffcde1aea4d2822ddd5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/server/vfs.c