summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2024-09-23 22:29:30 +0200
committerSteve French <stfrench@microsoft.com>2025-01-31 12:51:44 -0600
commita49da4ef4b94345554923cdba1127a2d2a73d1e6 (patch)
treed43f1e67bd26a4b776c55523bde9dc5e7e5deedc /net/lapb/lapb_timer.c
parent2008d8c7121a9eee0ef8ea121581269886535150 (diff)
downloadlinux-a49da4ef4b94345554923cdba1127a2d2a73d1e6.tar.gz
linux-a49da4ef4b94345554923cdba1127a2d2a73d1e6.tar.bz2
linux-a49da4ef4b94345554923cdba1127a2d2a73d1e6.zip
cifs: Fix parsing native symlinks directory/file type
As SMB protocol distinguish between symlink to directory and symlink to file, add some mechanism to disallow resolving incompatible types. When SMB symlink is of the directory type, ensure that its target path ends with slash. This forces Linux to not allow resolving such symlink to file. And when SMB symlink is of the file type and its target path ends with slash then returns an error as such symlink is unresolvable. Such symlink always points to invalid location as file cannot end with slash. As POSIX server does not distinguish between symlinks to file and symlink directory, do not apply this change for symlinks from POSIX SMB server. For POSIX SMB servers, this change does nothing. This mimics Windows behavior of native SMB symlinks. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions