This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: [BUG] scandir bug
- To: cygwin at cygwin dot com
- Subject: Re: [BUG] scandir bug
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Wed, 19 Sep 2001 07:01:00 -0400
- References: <20010919042317.30464.qmail@mail.com>
- Reply-To: cygwin at cygwin dot com
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/