Same fix as bug 8989 - Samba 3.5.x (and probably all other versions of Samba) does...
authorJeremy Allison <jra@samba.org>
Sat, 16 Jun 2012 04:10:59 +0000 (21:10 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 16 Jun 2012 05:59:19 +0000 (07:59 +0200)
for the Trans2 calls. See MS-CIFS 2.2.4.47.2 for details.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jun 16 07:59:19 CEST 2012 on sn-devel-104

source3/smbd/trans2.c

index a093575c03db0e559e5eeaa159913ec636005a2e..3a13cd2b21e07b83ac290c2c88a80ac60aa16a45 100644 (file)
@@ -8870,6 +8870,15 @@ void reply_transs2(struct smb_request *req)
 
        show_msg((const char *)req->inbuf);
 
+       /* Windows clients expect all replies to
+          a transact secondary (SMBtranss2 0x33)
+          to have a command code of transact
+          (SMBtrans2 0x32). See bug #8989
+          and also [MS-CIFS] section 2.2.4.47.2
+          for details.
+       */
+       req->cmd = SMBtrans2;
+
        if (req->wct < 8) {
                reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
                END_PROFILE(SMBtranss2);