stat("/dev/null",... broken

Earnie Boyd
Thu Jul 12 11:50:00 GMT 2001

Christopher Faylor wrote:
> On Thu, Jul 12, 2001 at 02:17:49PM -0600, Earnie Boyd wrote:
> >The error happens with the newest dll and NOT with the 2001-05-30 dll.
> Ok.  Your test case has a bug.  Is that intentional?  You're passing
> an invalid pointer as argument two.
> I just tested this with the most recent cvs version and 'ls -l' which
> had no problems with this, so I assumed that this was an "old dll"
> problem.

Oh, sorry.  It still doesn't look correct in the strace though.  See the
error in path_conv::update_fs_info.

#include <stdlib.h>
#include <sys/stat.h>

main ( void )
    struct stat fs;
    stat("/dev/null", &fs);

More information about the Cygwin-developers mailing list