mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
fixed the layout of the FULL_DIRECTORY_INFO trans2 findfirst level
found by samba4 smbtorture SEARCH test (This used to be commit 5a5f59cf5eec39394b8aec4aab7f2c347d617255)
This commit is contained in:
parent
7d4b53c2aa
commit
d51b463b3f
@ -729,13 +729,13 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
|
||||
SOFF_T(p,0,file_size);
|
||||
SOFF_T(p,8,allocation_size);
|
||||
p += 16;
|
||||
SIVAL(p,0,nt_extmode); p += 4;
|
||||
SIVAL(p,0,nt_extmode);
|
||||
p += 4;
|
||||
SIVAL(p,0,0); p += 4;
|
||||
|
||||
len = srvstr_push(outbuf, p, fname, -1, 0);
|
||||
SIVAL(p, -4, len);
|
||||
p += len;
|
||||
SIVAL(p,4,0); /* ea size */
|
||||
len = srvstr_push(outbuf, p+8, fname, -1, 0);
|
||||
SIVAL(p, 0, len);
|
||||
p += 8 + len;
|
||||
|
||||
len = PTR_DIFF(p, pdata);
|
||||
len = (len + 3) & ~3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user