diff options
author | Steve French <sfrench@us.ibm.com> | 2006-10-12 17:33:51 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-10-12 17:33:51 -0400 |
commit | 1a4e15a04ec69cb3552f4120079f5472377df5f7 (patch) | |
tree | f305d7d15e696aa2570eb5e66bc5902b0ed09ce0 /fs/cifs/cifssmb.c | |
parent | d103e164bee2f21d0efe7d713cbbb0a443ba480d (diff) |
[CIFS] Missing flags2 for DFS
Partly suggested by Igor Mammedov
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 6f50f2bc8870..5dc5a966bd5f 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -3675,6 +3675,14 @@ getDFSRetry: | |||
3675 | strncpy(pSMB->RequestFileName, searchName, name_len); | 3675 | strncpy(pSMB->RequestFileName, searchName, name_len); |
3676 | } | 3676 | } |
3677 | 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 | |||
3678 | params = 2 /* level */ + name_len /*includes null */ ; | 3686 | params = 2 /* level */ + name_len /*includes null */ ; |
3679 | pSMB->TotalDataCount = 0; | 3687 | pSMB->TotalDataCount = 0; |
3680 | pSMB->DataCount = 0; | 3688 | pSMB->DataCount = 0; |