]> www.infradead.org Git - users/willy/linux.git/commit
smb3.1.1: fix posix mounts to older servers
authorSteve French <stfrench@microsoft.com>
Wed, 4 Dec 2024 23:46:00 +0000 (17:46 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 6 Dec 2024 15:13:00 +0000 (09:13 -0600)
commitddca5023091588eb303e3c0097d95c325992d05f
tree7169637e8f2f22183ef98f862795fc9a3f0dd317
parent8cb0bc5436351de8a11eef13b7367d64cc0d6c68
smb3.1.1: fix posix mounts to older servers

Some servers which implement the SMB3.1.1 POSIX extensions did not
set the file type in the mode in the infolevel 100 response.
With the recent changes for checking the file type via the mode field,
this can cause the root directory to be reported incorrectly and
mounts (e.g. to ksmbd) to fail.

Fixes: 6a832bc8bbb2 ("fs/smb/client: Implement new SMB3 POSIX type")
Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Cc: Ralph Boehme <slow@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsproto.h
fs/smb/client/inode.c
fs/smb/client/readdir.c