On 8/10/07, Hugh McIntyre <[EMAIL PROTECTED]> wrote:
> "man lstat" says:
>
>       The lstat() function  obtains  file  attributes  similar  to
>       stat(),  except  when  the named file is a symbolic link; in
>       that case lstat() returns information about the link,  while
>       stat()  returns  information  about the file the link refer-
>       ences.
>
> So if you replace stat() with lstat() you'll probably be good to go.
> Check you also get the behavior you want for non existent links though.
>

Ah! man page is clear enough. my error.
thanks.

-Shiv
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to