From: Jeremy Allison Date: Sat, 7 Apr 2007 06:59:32 +0000 (+0000) Subject: r22124: Wow - NTCreateX sets the word count to 42, but returns 50 on X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~752 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57e46f2f80db153fc7ce0eb09f24afa78aa27349;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index 9094519b3ee..0618a938e70 100644 --- a/source/smbd/nttrans.c +++ b/source/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); }