This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: readdir after rewinddir not working in 20060128 snapshot


On Jan 30 00:29, Yitzchak Scott-Thoennes wrote:
> After a rewinddir, readdir seems to return as many empty entries as there
> were actual entries left to read, followed by . and ..

Thanks for the testcase!  Since the underlying NT call NtQueryDirectoryInfo
is able to return more than one directory entry in one call, I thought it
might be a good idea to implement readdir caching.  Unfortunately I forgot
to reset the cache in case of rewinddir.  I've applied a fix now.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]