[Bug 581] SFTP "ls" listings never end

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jun 4 09:22:42 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=581





------- Additional Comments From mouring at eviladmin.org  2003-06-04 09:22 -------
There are two aspects to this bug.

1. Tru64's kernel is broken. =)  After readdir() returns NULL the first time 
it should return NULL every other time.  Something Tru64 does not do when it 
is access files via NFS.

2. sftp-server depends on this behavior.

the Posix definition just states "the end of the directory is encountered, a 
null pointer shall be returned and errno is not changed."  which to me implies 
it should not rewind() the DIR* structure.  Which is what seems to be 
happening.

You need to really report this bug to Compaq/HP.  Before I consider any work 
arounds I would perfer to know that this has not been resolved in a service 
pack.



------- 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