PREV INDEX NEXT

Author: Unknown
Subject: stats vs lstat for command line files
Date: Wednesday, 09 Sep 2020, 16:10:13

If I run /c/cs323/Hwk1/fiend -L file1, I get the same if I run /c/cs323/Hwk1/fiend file1 which is stat(file1) failed (assuming file1 doesnt exist in my directory). The output of both is "stat(file1) Failed". Does this mean for the command line we can use stat for both -L and -P? Because isn't stat and lstat be giving slightly different information (one about link, and other about target).
PREV INDEX NEXT