Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cifs: Fix parsing reparse point with native symlink in SMB1 non-UNICO…
…DE session SMB1 NT_TRANSACT_IOCTL/FSCTL_GET_REPARSE_POINT even in non-UNICODE mode returns reparse buffer in UNICODE/UTF-16 format. This is because FSCTL_GET_REPARSE_POINT is NT-based IOCTL which does not distinguish between 8-bit non-UNICODE and 16-bit UNICODE modes and its path buffers are always encoded in UTF-16. This change fixes reading of native symlinks in SMB1 when UNICODE session is not active. Fixes: ed3e0a1 ("smb: client: implement ->query_reparse_point() for SMB1") Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Steve French <[email protected]>
- Loading branch information