Set unicode flag on cifs echo request to avoid Mac error
[pandora-kernel.git] / fs / cifs / cifssmb.c
index 969f74f..48db02d 100644 (file)
@@ -764,6 +764,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;