19e7825
(input_file_open): Remove call to stat(). Add a check for getc() failing, and catch the case where the failure is due to an attempt to read a directory.