On Fri, Apr 06, 2001 at 11:05:00AM +0200, Ronald Hecht wrote: >I tracked down the problem to the "(dp = readdir(dirp)) != NULL)" >command in process_readdir of sftp-server.c. The readdir function seems >to crash when it's called the second time. The main difference between >the first time it's called and the second is the value of >dirp->__d_dirent.__d_position. At the first time it's zero. The second >time nonzero (actually the last position of the directory). I set it to >zero, to see what happens and readdir is working correctly (lists the >directory again). > >Hope, this helps a bit. Did you look at the readdir code? Setting __d_position to zero really doesn't make sense in repeated readdir calls. I don't think this is a useful debugging point. If you are able to debug things to this point, can't you figure out exactly why it is core dumping? cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple