On Tue, Mar 22, 2005 at 08:22:04PM -0500, Derrell.Lipman@UnwiredUniverse.com wrote:
> Jeremy Allison writes:
> > How are you reproducing this ? I've been testing against a directory on W2k3
> > and Samba and Win98 with 6000 file within it, and ensuring that a smbclient
> > listing returns only 6000 files.

> Win98. I think what's happening is not too many files, but the same one file
> replacing lots of others. I've got a large number of the same file name.
> I'm working on tracking it down. Hopefully I'll be able to get you an answer
> within the next hour or so.

What would help is an ethereal capture trace of the findfirst/findnext.
The cli_list_new() code believes the values returned for ff_searchcount
and ff_lastname:

ff_searchcount = SVAL(p,2);
ff_lastname = SVAL(p,8);

for trans2findfirst and

ff_searchcount = SVAL(p,0);
ff_lastname = SVAL(p,6);

for trans2findnext returns. I wonder if win98 is filling them in correctly ?
The other bug would be if your Win98 didn't fill in the ff_lastname correctly
so that we restarted from before the end of the last listing.