This is the mail archive of the
mailing list for the Cygwin project.
Re: Problem with stat
Eric Blake <email@example.com> writes:
> According to Erich Dollansky on 6/26/2007 6:57 AM:
>> if (stat ("/usr/X11R6/share/doc/lesstif-0.94.4/html/Lessdox", &Stat)
>> == 0)
>> printf ("Mode: %lX\n", (unsigned long) Stat.st_mode);
>> if (S_ISDIR (Stat.st_mode))
>> printf ("Directory flag is set.\n");
>> The result is the same as before.
>> I do not get the message 'Link flag is set.'
> And that is correct behavior. It is a bug if you can ever make
> stat() or fstat() report S_ISLNK.
fstat, yes. But shouldn't stat be able to report S_ISLNK on a broken
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html