Commit:     100c1ddc98e070c1b595d6bad329fb57bc57313c
Parent:     221601c3d1df8148525daf3143a7a22fba772566
Author:     Yehuda Sadeh Weinraub <[EMAIL PROTECTED]>
AuthorDate: Tue Jun 5 21:31:16 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Tue Jun 5 21:31:16 2007 +0000

    [CIFS] Missing flag on negprot needed for some servers to force packet 
    A related signature issue that I came across.
    There's a bug in win2k that when NT error codes are not negotiated, the
    server doesn't response that signatures are mandatory. Since there's
    (currently) no way turn on signatures in such case, I had to force NT
    error codes, so that this bug will not occur
    Signed-off-by: Yehuda Sadeh Weinraub <[EMAIL PROTECTED]>
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
 fs/cifs/cifssmb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 14de58f..57419a1 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -433,8 +433,8 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
        cFYI(1,("secFlags 0x%x",secFlags));
        pSMB->hdr.Mid = GetNextMid(server);
-       pSMB->hdr.Flags2 |= SMBFLG2_UNICODE;
-       if((secFlags & CIFSSEC_MUST_KRB5) == CIFSSEC_MUST_KRB5)
+       pSMB->hdr.Flags2 |= (SMBFLG2_UNICODE | SMBFLG2_ERR_STATUS);
+       if ((secFlags & CIFSSEC_MUST_KRB5) == CIFSSEC_MUST_KRB5)
                pSMB->hdr.Flags2 |= SMBFLG2_EXT_SEC;
        count = 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to