mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
fix directory listing on win9x.
it turns out this is tricky to get right for both win9x and w2k with and without unicode. This patch seems to do the trick. (This used to be commit 01ebe5fff2b3cb29f083afb224b1257364ac5d80)
This commit is contained in:
parent
3faee01c7c
commit
f5b6ef1b65
@ -54,9 +54,13 @@ static int interpret_long_filename(struct cli_state *cli,
|
||||
len = CVAL(p, 26);
|
||||
p += 27;
|
||||
p += clistr_align_in(cli, p, 0);
|
||||
/* the len+2 below looks strange but it is
|
||||
important to cope with the differences
|
||||
between win2000 and win9x for this call
|
||||
(tridge) */
|
||||
p += clistr_pull(cli, finfo->name, p,
|
||||
sizeof(finfo->name),
|
||||
len,
|
||||
len+2,
|
||||
STR_TERMINATE);
|
||||
return PTR_DIFF(p, base);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user