httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/http mod_mime.c
Date Wed, 15 Aug 2001 03:09:33 GMT
wrowe       01/08/14 20:09:33

  Modified:    modules/http mod_mime.c
  Log:
    Solve the segfault until the right patch is unearthed.
    [Greg Ames]
  
  Revision  Changes    Path
  1.51      +4 -4      httpd-2.0/modules/http/mod_mime.c
  
  Index: mod_mime.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/mod_mime.c,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- mod_mime.c	2001/08/14 02:35:55	1.50
  +++ mod_mime.c	2001/08/15 03:09:32	1.51
  @@ -220,13 +220,13 @@
       attrib_info *suffix;
   
       if (base->extension_mappings && add->extension_mappings) {
  -        if (base->copy_mappings)
  -            new->extension_mappings = base->extension_mappings;
  -        else {
  +        /* XXX: Greg Ames' fast hack to always copy the hash.
  +         * It's incomplete, and slower than tables, but at least
  +         * the server (mostly) runs once again.
  +         */
               new->extension_mappings = apr_hash_make(p);
               overlay_extension_mappings(p, base->extension_mappings,
                                          new->extension_mappings);
  -        }
           overlay_extension_mappings(p, add->extension_mappings,
                                      new->extension_mappings);
           new->copy_mappings = 1;
  
  
  

Mime
View raw message