O'Reilly logo
  • Ivan Petrov thinks this is interesting:

For this reason, the lstat() system call exists. It behaves exactly like stat(), but if the file being checked happens to be a symbolic link, then the information returned applies to the symbolic link, and not to the pointed-to file. Specifically:


Cover of Linux® Programming by Example


lstat vs stat