[CIFS] Missing flags2 for DFS

Partly suggested by Igor Mammedov

Signed-off-by: Steve French <sfrench@us.ibm.com>

+11 -1
+8
fs/cifs/cifssmb.c
··· 3675 strncpy(pSMB->RequestFileName, searchName, name_len); 3676 } 3677 3678 params = 2 /* level */ + name_len /*includes null */ ; 3679 pSMB->TotalDataCount = 0; 3680 pSMB->DataCount = 0;
··· 3675 strncpy(pSMB->RequestFileName, searchName, name_len); 3676 } 3677 3678 + if(ses->server) { 3679 + if(ses->server->secMode & 3680 + (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) 3681 + pSMB->hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; 3682 + } 3683 + 3684 + pSMB->hdr.Uid = ses->Suid; 3685 + 3686 params = 2 /* level */ + name_len /*includes null */ ; 3687 pSMB->TotalDataCount = 0; 3688 pSMB->DataCount = 0;
+3 -1
fs/cifs/connect.c
··· 3219 } 3220 /* else do not bother copying these informational fields */ 3221 } 3222 - if(smb_buffer_response->WordCount == 3) 3223 tcon->Flags = le16_to_cpu(pSMBr->OptionalSupport); 3224 else 3225 tcon->Flags = 0;
··· 3219 } 3220 /* else do not bother copying these informational fields */ 3221 } 3222 + if((smb_buffer_response->WordCount == 3) || 3223 + (smb_buffer_response->WordCount == 7)) 3224 + /* field is in same location */ 3225 tcon->Flags = le16_to_cpu(pSMBr->OptionalSupport); 3226 else 3227 tcon->Flags = 0;