[BUG] scandir bug

Christopher Faylor cgf@redhat.com
Wed Sep 19 04:00:00 GMT 2001


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/



More information about the Cygwin mailing list