X-Spam-Check-By: sourceware.org Date: Mon, 30 Jan 2006 11:39:48 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: readdir after rewinddir not working in 20060128 snapshot Message-ID: <20060130103948.GL15572@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20060130082921 DOT GA2404 AT efn DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060130082921.GA2404@efn.org> User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/