1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

r6022: Fix for bug #2533. Incorrect dir listings from OS/2 clients.

Jeremy.
This commit is contained in:
Jeremy Allison
2005-03-24 02:23:32 +00:00
committed by Gerald (Jerry) Carter
parent 4868e42027
commit cf8949f684
2 changed files with 3 additions and 8 deletions

View File

@ -641,7 +641,9 @@ void make_dir_struct(char *buf, const char *mask, const char *fname,SMB_OFF_T si
put_dos_date(buf,22,date);
SSVAL(buf,26,size & 0xFFFF);
SSVAL(buf,28,(size >> 16)&0xFFFF);
push_ascii(buf+30,fname,12,0);
/* We only uppercase if the protocol is downrev.
Strange, but verified on W2K3. Needed for OS/2. JRA. */
push_ascii(buf+30,fname,12,Protocol < PROTOCOL_NT1 ? STR_UPPER : 0);
DEBUG(8,("put name [%s] from [%s] into dir struct\n",buf+30, fname));
}