# HG changeset patch # User David A. Holland # Date 1370973309 14400 # Node ID 1e7144176a42ac8e1415d993ad1ab5029cd8908b # Parent 2b0b61fd1a362c4e0d6bcf15c1885b20890dc6cf Print a warning if we get an unexpected error trying to open a file. diff -r 2b0b61fd1a36 -r 1e7144176a42 files.c --- a/files.c Tue Jun 11 13:50:07 2013 -0400 +++ b/files.c Tue Jun 11 13:55:09 2013 -0400 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include "array.h" @@ -326,6 +327,9 @@ fd = open(file, O_RDONLY); if (fd < 0) { + if (errno != ENOENT && errno != ENOTDIR) { + warn("%s", file); + } return -1; }