smb: client: handle path separator of created SMB symlinks
authorPaulo Alcantara <pc@manguebit.com>
Sun, 11 Feb 2024 23:19:31 +0000 (20:19 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 12 Feb 2024 18:47:21 +0000 (12:47 -0600)
commit8bde59b20de06339d598e8b05e5195f7c631c38b
tree747b1929632fba1ae016734c5b53622135886921
parent4508ec17357094e2075f334948393ddedbb75157
smb: client: handle path separator of created SMB symlinks

Convert path separator to CIFS_DIR_SEP(cifs_sb) from symlink target
before sending it over the wire otherwise the created SMB symlink may
become innaccesible from server side.

Fixes: 514d793e27a3 ("smb: client: allow creating symlinks via reparse points")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c