Because stat() returns information about the file that the link refers to.
To get information about the symbolic link itself, use the lstat() call.
Is there a way to fix the problem on Windows?
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
In the best Botchamania tradition: Huh!? Symbolic Links (Windows)