stas        2003/03/16 18:15:11

  Modified:    src/modules/perl mod_perl.c
               .        Changes
  Log:
  re-use the workaround for glibc/Perl-5.8.0 crypt() bug for the
  main/vhost base perl interpreters as well. This solves the problem for
  the buggy glibc on RH8.0.
  
  Revision  Changes    Path
  1.157     +5 -0      modperl-2.0/src/modules/perl/mod_perl.c
  
  Index: mod_perl.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/mod_perl.c,v
  retrieving revision 1.156
  retrieving revision 1.157
  diff -u -r1.156 -r1.157
  --- mod_perl.c        8 Mar 2003 09:49:26 -0000       1.156
  +++ mod_perl.c        17 Mar 2003 02:15:09 -0000      1.157
  @@ -172,6 +172,11 @@
       endav = PL_endav;
       PL_endav = Nullav;
   
  +#if defined(USE_REENTRANT_API) && defined(HAS_CRYPT_R) && defined(__GLIBC__)
  +    /* workaround perl5.8.0/glibc bug */
  +    PL_reentrant_buffer->_crypt_struct.current_saltbits = 0;
  +#endif
  +    
       perl_run(perl);
   
       PL_endav = endav;
  
  
  
  1.151     +4 -0      modperl-2.0/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/Changes,v
  retrieving revision 1.150
  retrieving revision 1.151
  diff -u -r1.150 -r1.151
  --- Changes   14 Mar 2003 05:36:48 -0000      1.150
  +++ Changes   17 Mar 2003 02:15:10 -0000      1.151
  @@ -10,6 +10,10 @@
   
   =item 1.99_09-dev
   
  +re-use the workaround for glibc/Perl-5.8.0 crypt() bug for the
  +main/vhost base perl interpreters as well. This solves the problem for
  +the buggy glibc on RH8.0. [Stas]
  +
   send_cgi_header now turns the header parsing off and can send any data
   attached after the response headers as a response body. [Stas]
   
  
  
  

Reply via email to