Eric Blake <[EMAIL PROTECTED]> 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
link?

-- 
David Kastrup


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to