PREV INDEX NEXT

Author: Unknown
Subject: Lstat vs stat
Date: Sunday, 06 Sep 2020, 22:59:35

I get that for -P we use Lstat and -L we use stat, but why do we use lstat() for symbolic links?

From the man page, it says that lstat looks at info about the link and stat looks at the target, but I am confused why its different for when we traverse symbolic vs non-symbolic only links.
PREV INDEX NEXT