You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by ch...@locus.apache.org on 2000/07/25 19:59:51 UTC

cvs commit: modperl/src/modules/perl Apache.xs

cholet      00/07/25 10:59:49

  Modified:    .        Changes
               src/modules/perl Apache.xs
  Log:
  return code from stat() call was being ignored
  
  Revision  Changes    Path
  1.502     +3 -0      modperl/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/modperl/Changes,v
  retrieving revision 1.501
  retrieving revision 1.502
  diff -u -r1.501 -r1.502
  --- Changes	2000/07/24 13:22:50	1.501
  +++ Changes	2000/07/25 17:59:45	1.502
  @@ -10,6 +10,9 @@
   
   =item 1.24_01-dev
   
  +flush r->finfo cache if r->filename fails
  +[Roger Espel Llima <es...@iagora.net>]
  +
   fix per-dir merging of PerlSetupEnv [Eric Cholet <ch...@logilune.com>]
   
   INSTALL.raven update [Adam Qualset <ad...@covalent.net>]
  
  
  
  1.99      +3 -1      modperl/src/modules/perl/Apache.xs
  
  Index: Apache.xs
  ===================================================================
  RCS file: /home/cvs/modperl/src/modules/perl/Apache.xs,v
  retrieving revision 1.98
  retrieving revision 1.99
  diff -u -r1.98 -r1.99
  --- Apache.xs	2000/06/05 18:18:49	1.98
  +++ Apache.xs	2000/07/25 17:59:48	1.99
  @@ -1870,7 +1870,9 @@
       get_set_PVp(r->filename,r->pool);
   #ifndef WIN32
       if(items > 1)
  -	stat(r->filename, &r->finfo);
  +	if ((laststatval = stat(r->filename, &r->finfo)) < 0) {
  +            r->finfo.st_mode = 0;
  +	}
   #endif
   
       OUTPUT: