Problem with stat

Erich Dollansky oceanare@pacific.net.sg
Thu Jun 28 06:34:00 GMT 2007


Hi,

Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 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.
> 
is is right that the link is pointing to itself resulting in an endless 
loop?

!<symlink>/usr/X11R6/share/doc/lesstif-0.94.4/html

Or is it an installation error?

Erich

--
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/



More information about the Cygwin mailing list