PREV INDEX NEXT

Author: Unknown
Subject: Traverse Failed to Open File
Date: Saturday, 12 Sep 2020, 17:30:56

While traversing a given directory, if we encounter a file where stat(file) < 0 (i.e. error in the symbolic link target, not existing etc.), are we supposed to print to stderr and return? Do we ever evaluate the current path (with the expression) before printing to stderr and returning?

I created symbolic links from a file A to B, and from B to a nonexistent file. While traversing with -L, find and the staff solution prints out ./A, but doesn't prints to stderr even though stat(A) < 0.
PREV INDEX NEXT