Because stat() returns information about the file that the link refers to.
To get information about the symbolic link itself, use the lstat() call.
Because stat() returns information about the file that the link refers to.
To get information about the symbolic link itself, use the lstat() call.