diff options
author | Steve French <smfrench@gmail.com> | 2017-05-02 13:35:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-20 14:27:01 +0200 |
commit | 89d23005fd63d7aec151b37e6b62f540573ded8c (patch) | |
tree | 3cdae12ffc5b0f2a11ea9a74ab6c385970934780 /fs/cifs/cifssmb.c | |
parent | 7aad381af8c37b18a68c86d87650025552914dca (diff) | |
download | linux-stable-89d23005fd63d7aec151b37e6b62f540573ded8c.tar.gz linux-stable-89d23005fd63d7aec151b37e6b62f540573ded8c.tar.bz2 linux-stable-89d23005fd63d7aec151b37e6b62f540573ded8c.zip |
Set unicode flag on cifs echo request to avoid Mac error
commit 26c9cb668c7fbf9830516b75d8bee70b699ed449 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>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 5e2f8b8ca08a..b60150e5b5ce 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -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; |