]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Fix querying and creating MF symlinks over SMB1
authorPali Rohár <pali@kernel.org>
Sat, 28 Dec 2024 20:09:54 +0000 (21:09 +0100)
committerSteve French <stfrench@microsoft.com>
Tue, 1 Apr 2025 06:54:17 +0000 (01:54 -0500)
commit4236ac9fe5b8b42756070d4abfb76fed718e87c2
treec1cb312d0397a4c5fd4c253e856e29e86dc09ea8
parent6aa9f1c9cd09c1c39a35da4fe5f43446ec18ce1e
cifs: Fix querying and creating MF symlinks over SMB1

Old SMB1 servers without CAP_NT_SMBS do not support CIFS_open() function
and instead SMBLegacyOpen() needs to be used. This logic is already handled
in cifs_open_file() function, which is server->ops->open callback function.

So for querying and creating MF symlinks use open callback function instead
of CIFS_open() function directly.

This change fixes querying and creating new MF symlinks on Windows 98.
Currently cifs_query_mf_symlink() is not able to detect MF symlink and
cifs_create_mf_symlink() is failing with EIO error.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/link.c