1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r7157: Ensure we abort a directory listing if we see the same

name twice between packets.
Jeremy.
This commit is contained in:
Jeremy Allison 2005-06-01 00:00:07 +00:00 committed by Gerald (Jerry) Carter
parent fce48fa1b4
commit f9063b383e

View File

@ -313,6 +313,13 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
}
p2 += interpret_long_filename(cli,info_level,p2,&finfo,
&resume_key,&last_name_raw,&last_name_raw_len);
if (!First && *mask && strcsequal(finfo.name, mask)) {
DEBUG(0,("Error: Looping in FIND_NEXT as name %s has already been seen?\n",
finfo.name));
ff_eos = 1;
break;
}
}
if (ff_lastname > 0) {