]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb: client: fix regression with native SMB symlinks
authorPaulo Alcantara <pc@manguebit.org>
Sun, 22 Jun 2025 17:13:40 +0000 (14:13 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 23 Jun 2025 14:17:25 +0000 (09:17 -0500)
commitff8abbd248c1f52df0c321690b88454b13ff54b2
tree86909d0fdfb782a7077ffb3b8810e8dd56fee72b
parent86731a2a651e58953fc949573895f2fa6d456841
smb: client: fix regression with native SMB symlinks

Some users and customers reported that their backup/copy tools started
to fail when the directory being copied contained symlink targets that
the client couldn't parse - even when those symlinks weren't followed.

Fix this by allowing lstat(2) and readlink(2) to succeed even when the
client can't resolve the symlink target, restoring old behavior.

Cc: linux-cifs@vger.kernel.org
Cc: stable@vger.kernel.org
Reported-by: Remy Monsen <monsen@monsen.cc>
Closes: https://lore.kernel.org/r/CAN+tdP7y=jqw3pBndZAGjQv0ObFq8Q=+PUDHgB36HdEz9QA6FQ@mail.gmail.com
Reported-by: Pierguido Lambri <plambri@redhat.com>
Fixes: 12b466eb52d9 ("cifs: Fix creating and resolving absolute NT-style symlinks")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/reparse.c