mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r5970: Fix old bug where ff_searchcount was being compared -1 ! This caused a
filename to be processed twice.
Jeremy.
(This used to be commit 2ed7e30cbb
)
This commit is contained in:
parent
b3e57cb3ff
commit
f8f090ad24
@ -283,7 +283,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
|
||||
|
||||
/* put in a length for the last entry, to ensure we can chain entries
|
||||
into the next packet */
|
||||
for (p2=p,i=0;i<(ff_searchcount-1);i++) {
|
||||
for (p2=p,i=0;i<ff_searchcount;i++) {
|
||||
p2 += interpret_long_filename(cli,info_level,p2,&finfo);
|
||||
}
|
||||
SSVAL(p2,0,data_len - PTR_DIFF(p2,p));
|
||||
|
Loading…
Reference in New Issue
Block a user