randy 97/01/25 07:44:40
Modified: src http_request.c
Log:
The below patch makes the error message a bit more standard and doesn't
print it if the reason for stat failing was EACCES. Should go in before
the beta goes out.
Reviewed by: Randy Terbush
Submitted by: Marc Slemko
Revision Changes Path
1.40 +9 -2 apache/src/http_request.c
Index: http_request.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_request.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -C3 -r1.39 -r1.40
*** http_request.c 1997/01/20 09:30:50 1.39
--- http_request.c 1997/01/25 15:44:39 1.40
***************
*** 208,217 ****
}
#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 HTTP_FORBIDDEN;
}
! #endif
}
return OK;
}
--- 208,224 ----
}
#if defined(ENOENT) && defined(ENOTDIR)
else {
! #if defined(EACCES)
! if (errno != EACCES)
! #endif
! log_printf(r->server,
! "access to %s failed for %s, reason: stat: %s (errno = %d)",
! r->uri, get_remote_host(r->connection, r->per_dir_config,
! REMOTE_NAME), strerror(errno), errno);
!
return HTTP_FORBIDDEN;
}
! #endif /* ENOENT && ENOTDIR */
}
return OK;
}