[Bug 581] SFTP "ls" listings never end
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Jun 4 07:24:58 EST 2003
http://bugzilla.mindrot.org/show_bug.cgi?id=581
------- Additional Comments From from-bugzilla at geek-central.gen.nz 2003-06-04 07:24 -------
Created an attachment (id=319)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=319&action=view)
Fixes the problem
The client used was OpenSSH 3.6.1ps SFTP, though I expect the problem would
happen with any client.
The bug is triggered because each time process_readdir is called, it collects
up to 100 entries from readdir, or until readdir returns NULL. If it collected
any entries at all, it doesn't remember which case it encountered. So it will
get called again to return more entries, so it calls readdir again, which can
start returning the entire directory listing again. And so on, and so on.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list