5 /* fopen will fail if mode=='w' and filename is a directory, so we
6 * only need to check the mode=='r' case */
8 - result = stat(filename, &s);
9 - if (result != 0) return NULL; /* stat() failed */
10 - if (S_ISDIR(s.st_mode)) return NULL; /* is a directory, so bail */
12 +// if (*mode == 'r') {
13 +// result = stat(filename, &s);
14 +// if (result != 0) return NULL; /* stat() failed */
15 +// if (S_ISDIR(s.st_mode)) return NULL; /* is a directory, so bail */
17 return fopen(filename, mode);