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 commit is contained in:
parent
85be4c5df3
commit
2ed7e30cbb
@ -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