PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] Traverse Failed to Open File
Date: Saturday, 12 Sep 2020, 19:08:09


    > Message Posted By: Unknown
    >
    > 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.

This is a rather obscure case (which will not be tested
on the final script) where the code in Hwk1/fiend tries
to mimic /bin/find.  I have no other explanation.  Sorry.

--Stan-
PREV INDEX NEXT