dgaudet     97/07/26 19:38:05

  Modified:    src       CHANGES mod_cern_meta.c
  Log:
  fix problem with trying to find meta files for a directory in some cases,
  but not in others.
  
  Revision  Changes    Path
  1.368     +4 -0      apache/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apache/src/CHANGES,v
  retrieving revision 1.367
  retrieving revision 1.368
  diff -u -r1.367 -r1.368
  --- CHANGES   1997/07/27 02:34:42     1.367
  +++ CHANGES   1997/07/27 02:38:03     1.368
  @@ -1,5 +1,9 @@
   Changes with Apache 1.3a2
   
  +  *) mod_cern_meta would attempt to find meta files for the directory itself
  +     in some cases, but not in others.  It now avoids it in all cases.
  +     [Dean Gaudet]
  +
     *) mod_mime_magic would core dump if there was a decompression error.
        [Martin Kraemer <[EMAIL PROTECTED]>] PR#904
   
  
  
  
  1.15      +2 -2      apache/src/mod_cern_meta.c
  
  Index: mod_cern_meta.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_cern_meta.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- mod_cern_meta.c   1997/07/17 22:27:34     1.14
  +++ mod_cern_meta.c   1997/07/27 02:38:04     1.15
  @@ -253,8 +253,8 @@
        return DECLINED;
       };
   
  -    /* does uri end in a trailing slash? */
  -    if ( r->uri[strlen(r->uri) - 1] == '/' ) {
  +    /* is this a directory? */
  +    if (S_ISDIR(r->finfo.st_mode) || r->uri[strlen(r->uri) - 1] == '/') {
        return DECLINED;
       };
   
  
  
  

Reply via email to