*** ../../t/apache_1.1.2/src/http_request.c Sat Jan 11 22:17:24 1997 --- ./http_request.c Mon Jan 13 12:07:41 1997 *************** *** 179,186 **** *cp = '\0'; return OK; } ! #if defined(ENOENT) ! else if (errno == ENOENT) { #else #error Your system apparently does not define ENOENT. #error Removal of these lines opens a security hole if protecting --- 179,186 ---- *cp = '\0'; return OK; } ! #if defined(ENOENT) && defined(ENOTDIR) ! else if (errno == ENOENT || errno == ENOTDIR) { #else #error Your system apparently does not define ENOENT. #error Removal of these lines opens a security hole if protecting *************** *** 195,203 **** while (cp > path && cp[-1] == '/') --cp; } ! #if defined(ENOENT) else { ! log_printf(r->server, "access to %s failed for client; unable to determine if index file exists (stat() returned unexpected error)", r->filename); return FORBIDDEN; } #endif --- 195,203 ---- while (cp > path && cp[-1] == '/') --cp; } ! #if defined(ENOENT) && defined(ENOTDIR) else { ! log_printf(r->server, "access to %s failed for client; unable to determine if index file exists (stat() returned unexpected error [%d])", r->filename, errno); return FORBIDDEN; } #endif