smb: client: fix missing mode bits for SMB symlinks
authorPaulo Alcantara <pc@manguebit.com>
Sun, 26 Nov 2023 02:55:10 +0000 (23:55 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:52:15 +0000 (08:52 +0100)
commitb6abe3380977e054a25f6fac82db2b0f18d3dc94
tree8f210e3fffe1365d7f23205b6d270658a7670b8c
parent514f89a35904e113a637b6a62b53e39185f9228d
smb: client: fix missing mode bits for SMB symlinks

commit ef22bb800d967616c7638d204bc1b425beac7f5f upstream.

When instantiating inodes for SMB symlinks, add the mode bits from
@cifs_sb->ctx->file_mode as we already do for the other special files.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/inode.c