You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Dean Gaudet <dg...@hyperreal.com> on 1997/06/25 10:15:24 UTC

cvs commit: apache/src mod_cern_meta.c

dgaudet     97/06/25 01:15:23

  Modified:    src       mod_cern_meta.c
  Log:
  Fix a problem caused by the security fix.  It has to return DECLINED rather
  than FORBIDDEN if the file doesn't exist.
  
  Revision  Changes    Path
  1.12      +3 -1      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.11
  retrieving revision 1.12
  diff -C3 -r1.11 -r1.12
  *** mod_cern_meta.c	1997/06/24 03:03:48	1.11
  --- mod_cern_meta.c	1997/06/25 08:15:21	1.12
  ***************
  *** 239,245 ****
        char *last_slash;
        char *real_file;
        char *scrap_book;
  -     struct stat meta_stat;
        FILE *f;   
        cern_meta_config *cmc ;
        int rv;
  --- 239,244 ----
  ***************
  *** 292,297 ****
  --- 291,299 ----
    
        f = pfopen (r->pool, metafilename, "r");
        if (f == NULL) {
  + 	if (errno == ENOENT) {
  + 	    return DECLINED;
  + 	}
            log_reason("meta file permissions deny server access", metafilename, r);
            return FORBIDDEN;
        };