From 8710c0ddd2e689aa2191ad5083858b0fc4324bac Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 7 Apr 2007 06:59:32 +0000 Subject: r22124: 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. (This used to be commit 57e46f2f80db153fc7ce0eb09f24afa78aa27349) --- source3/smbd/nttrans.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 9094519b3e..0618a938e7 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -848,7 +848,13 @@ int reply_ntcreate_and_X(connection_struct *conn, } 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); } -- cgit