svn commit: samba r6064 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Fri Mar 25 19:52:15 GMT 2005


Author: jra
Date: 2005-03-25 19:52:12 +0000 (Fri, 25 Mar 2005)
New Revision: 6064

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

Log:
Fix for bug #2533 - ensure SMBsearch unsets UNICODE flags2 bit as this SMB is
DOS codepage only.
Jeremy.

Modified:
   trunk/source/smbd/reply.c


Changeset:
Modified: trunk/source/smbd/reply.c
===================================================================
--- trunk/source/smbd/reply.c	2005-03-25 19:52:01 UTC (rev 6063)
+++ trunk/source/smbd/reply.c	2005-03-25 19:52:12 UTC (rev 6064)
@@ -1090,7 +1090,10 @@
 
 	if (Protocol >= PROTOCOL_NT1)
 		SSVAL(outbuf,smb_flg2,SVAL(outbuf, smb_flg2) | FLAGS2_IS_LONG_NAME);
-  
+
+	/* This SMB *always* returns ASCII names. Remove the unicode bit in flags2. */
+	SSVAL(outbuf,smb_flg2, (SVAL(outbuf, smb_flg2) & (~FLAGS2_UNICODE_STRINGS)));
+	  
 	outsize += DIR_STRUCT_SIZE*numentries;
 	smb_setlen(outbuf,outsize - 4);
   



More information about the samba-cvs mailing list