httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Skolnick <cli...@organic.com>
Subject shambhala bug (v0.5.2)
Date Fri, 07 Jul 1995 02:49:39 GMT

It seems 5.2 (and earlier I think) did not log "file not found" stuff in
the error log.  Here's a patch:


*** http_core.c-orig    Thu Jul  6 19:46:33 1995
--- http_core.c Thu Jul  6 19:48:19 1995
***************
*** 638,644 ****
      /* Generic case... */
  
      if (r->method_number != M_GET) return DECLINED;
!     if (r->finfo.st_mode == 0) return NOT_FOUND;
        
      if ((errstatus = set_content_length (r, r->finfo.st_size))
        || (errstatus = set_last_modified (r, r->finfo.st_mtime)))
--- 638,647 ----
      /* Generic case... */
  
      if (r->method_number != M_GET) return DECLINED;
!     if (r->finfo.st_mode == 0) {
!       log_reason("File does not exist", r->filename, r);
!       return NOT_FOUND;
!     }
        
      if ((errstatus = set_content_length (r, r->finfo.st_size))
        || (errstatus = set_last_modified (r, r->finfo.st_mtime)))


Mime
View raw message