diff options
author | Jeremy Allison <jra@samba.org> | 2005-03-25 19:52:01 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2005-03-25 19:52:01 +0000 |
commit | 4c384bef311898f56d1b99a85db4278cb43a9ad3 (patch) | |
tree | 94d6355eeef294a7a6396df6b4e880939e96c1bd /source | |
parent | e064c1617248ed7554126fe090cb47ce07a91891 (diff) | |
download | samba-4c384bef311898f56d1b99a85db4278cb43a9ad3.tar.gz samba-4c384bef311898f56d1b99a85db4278cb43a9ad3.tar.xz samba-4c384bef311898f56d1b99a85db4278cb43a9ad3.zip |
r6063: Fix for bug #2533 - ensure SMBsearch unsets UNICODE flags2 bit as this SMB is
DOS codepage only.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/smbd/reply.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 17423c531dc..6cc6a97afca 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -1090,7 +1090,10 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size 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); |