svn commit: samba r22124 - in branches: SAMBA_3_0/source/smbd SAMBA_3_0_25/source/smbd

jra at samba.org jra at samba.org
Sat Apr 7 06:59:33 GMT 2007


Author: jra
Date: 2007-04-07 06:59:32 +0000 (Sat, 07 Apr 2007)
New Revision: 22124

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22124

Log:
Wow - NTCreateX sets the word count to 42, but returns 50 on
the wire. Strange.... But now we're returning Windows compatible
extended info. Next to fix the pipe returns and NTTrans Creates.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/nttrans.c
   branches/SAMBA_3_0_25/source/smbd/nttrans.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/nttrans.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/nttrans.c	2007-04-07 06:38:45 UTC (rev 22123)
+++ branches/SAMBA_3_0/source/smbd/nttrans.c	2007-04-07 06:59:32 UTC (rev 22124)
@@ -848,7 +848,13 @@
 	}
 
 	if (flags & EXTENDED_RESPONSE_REQUIRED) {
-		set_message(outbuf,42,0,True);
+		/* This is very strange. We
+ 		 * return 50 words, but only set
+ 		 * the wcnt to 42 ? It's definately
+ 		 * what happens on the wire....
+ 		 */
+		set_message(outbuf,50,0,True);
+		SCVAL(outbuf,smb_wct,42);
 	} else {
 		set_message(outbuf,34,0,True);
 	}

Modified: branches/SAMBA_3_0_25/source/smbd/nttrans.c
===================================================================
--- branches/SAMBA_3_0_25/source/smbd/nttrans.c	2007-04-07 06:38:45 UTC (rev 22123)
+++ branches/SAMBA_3_0_25/source/smbd/nttrans.c	2007-04-07 06:59:32 UTC (rev 22124)
@@ -848,7 +848,13 @@
 	}
 
 	if (flags & EXTENDED_RESPONSE_REQUIRED) {
-		set_message(outbuf,42,0,True);
+		/* This is very strange. We
+ 		 * return 50 words, but only set
+ 		 * the wcnt to 42 ? It's definately
+ 		 * what happens on the wire....
+ 		 */
+		set_message(outbuf,50,0,True);
+		SCVAL(outbuf,smb_wct,42);
 	} else {
 		set_message(outbuf,34,0,True);
 	}



More information about the samba-cvs mailing list