1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

go back to ascii in SMB_FIND_FILE_BOTH_DIRECTORY_INFO

NT gives out unicode, but NT clients can't handle a unicode response!
This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 38f5e13367
commit 85d634974f

View File

@ -522,16 +522,10 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
SIVAL(p,0,strlen(fname)); p += 4;
SIVAL(p,0,0); p += 4;
if (!was_8_3) {
/* NT4 always uses unicode here */
fstring short_name, ushort_name;
int slen;
pstrcpy(short_name,fname);
name_map_mangle(short_name,True,True,SNUM(conn));
strupper(short_name);
slen = strlen(short_name);
ascii_to_unistr(ushort_name, short_name, 24);
memcpy(p+2, ushort_name, 2*slen);
SSVAL(p, 0, 2*slen);
fstrcpy(p+2,fname);
name_map_mangle(p+2,True,True,SNUM(conn));
strupper(p+2);
SSVAL(p, 0, strlen(p+2));
} else {
SSVAL(p,0,0);
*(p+2) = 0;