1
0
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:
Jeremy Allison 2005-03-22 21:22:59 +00:00 committed by Gerald (Jerry) Carter
parent 85be4c5df3
commit 2ed7e30cbb

View File

@ -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));