Author: Stan Eisenstat
Subject: Re: [Cs323] traversal exit
Date: Friday, 11 Sep 2020, 09:14:10
> Message Posted By: Unknown
>
> When we are traversing and are not able to open up a file, do we exit the
> program?
No. As stated in the specification:
When fiend encounters an error, it writes a one-line message to stderr. If
the error is in a command-line argument (e.g., when stat() or lstat() fails
on the argument to -newer, but not when a FILENAME does not exist), it exits|
immediately; otherwise it continues execution (e.g., when opendir() fails it|
moves to the next file). |
--Stan-
PREV
INDEX
NEXT