stat() not lstat()

stat the target of a symlink, not the link itself.