rbb         00/01/17 11:12:36

  Modified:    src/lib/apr/file_io/unix filestat.c
  Log:
  Fix a problem with ap_stat.  We should return the platforms error code, not
  an APR error if the stat function fails.
  
  Revision  Changes    Path
  1.12      +2 -2      apache-2.0/src/lib/apr/file_io/unix/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/filestat.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- filestat.c        2000/01/10 16:39:56     1.11
  +++ filestat.c        2000/01/17 19:12:30     1.12
  @@ -105,7 +105,7 @@
           return APR_SUCCESS;
       }
       else {
  -        return APR_ENOSTAT;
  +        return errno;
       }
   }
   
  @@ -135,6 +135,6 @@
           return APR_SUCCESS;
       }
       else {
  -        return APR_ENOSTAT;
  +        return errno;
       }
   }
  
  
  

Reply via email to