--- a/src/common.c +++ b/src/common.c @@ -562,11 +562,11 @@ /* fopen will fail if mode=='w' and filename is a directory, so we * only need to check the mode=='r' case */ - if (*mode == 'r') { - result = stat(filename, &s); - if (result != 0) return NULL; /* stat() failed */ - if (S_ISDIR(s.st_mode)) return NULL; /* is a directory, so bail */ - } +// if (*mode == 'r') { +// result = stat(filename, &s); +// if (result != 0) return NULL; /* stat() failed */ +// if (S_ISDIR(s.st_mode)) return NULL; /* is a directory, so bail */ +// } return fopen(filename, mode); }