mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Set unicode flag on cifs echo request to avoid Mac error
commit 26c9cb668c upstream.
Mac requires the unicode flag to be set for cifs, even for the smb
echo request (which doesn't have strings).
Without this Mac rejects the periodic echo requests (when mounting
with cifs) that we use to check if server is down
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4f5e1c48e8
commit
2ac2ad9fb0
@@ -717,6 +717,9 @@ CIFSSMBEcho(struct TCP_Server_Info *server)
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
if (server->capabilities & CAP_UNICODE)
|
||||
smb->hdr.Flags2 |= SMBFLG2_UNICODE;
|
||||
|
||||
/* set up echo request */
|
||||
smb->hdr.Tid = 0xffff;
|
||||
smb->hdr.WordCount = 1;
|
||||
|
||||
Reference in New Issue
Block a user