PREV INDEX NEXT

Author: Unknown
Subject: Clarification on use of stat() vs lstat()
Date: Wednesday, 16 Sep 2020, 18:16:24

In a previous response, you stated:
=====

    > if stat() fails, do we always check lstat()? ...

No.  For example,

  % fiend nonexistent-file
=====

In this example you gave, since the default option is "-P", why would stat() be called on the file in this case? Is there a reason to call stat() instead of lstat() when the "-P" option is specified?
PREV INDEX NEXT