Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Date: Wed, 19 Sep 2001 07:01:00 -0400 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: [BUG] scandir bug Message-ID: <20010919070100.C12960@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20010919042317.30464.qmail@mail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010919042317.30464.qmail@mail.com> User-Agent: Mutt/1.3.21i On Wed, Sep 19, 2001 at 12:23:15PM +0800, D G wrote: >According to the scandir man page, > >scandir(dirname,&entries,NULL,NULL); > >should work (in fact, it does on linux and hpux). However, on cygwin this causes a segmentation violation. > >Workaround is to use: > >scandir(dirname,&entries,NULL,alphasort); Why are you providing "workarounds" rather than "fixes"? This isn't a proprietary application where you have to guess at what's going wrong. Send in a patch and we'll put it in the sources. Then everyone will benefit. cgf (Who wonders how many times he has to make this point and why people just don't get it) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/