httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.com>
Subject cvs commit: apache/src mod_cern_meta.c
Date Wed, 25 Jun 1997 08:15:24 GMT
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;
        };
  
  
  

Mime
View raw message