You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@hyperreal.org on 2000/01/18 00:34:40 UTC

cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c

stoddard    00/01/17 15:34:40

  Modified:    src/lib/apr/file_io/win32 filestat.c
  Log:
  Port Ryan's fix to return errno to the Windows side of the house. Both
  functions need to be implemented as Windows native calls. And shouldn't
  ap_getfileinfo() be renamed to ap_fstat()?
  
  Revision  Changes    Path
  1.5       +2 -2      apache-2.0/src/lib/apr/file_io/win32/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/filestat.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- filestat.c	2000/01/17 19:37:52	1.4
  +++ filestat.c	2000/01/17 23:34:38	1.5
  @@ -105,7 +105,7 @@
           return APR_SUCCESS;
       }
       else {
  -        return APR_ENOSTAT;
  +        return errno;
       }
   }
   ap_status_t ap_stat(ap_finfo_t *finfo, const char *fname, ap_context_t *cont)
  @@ -125,7 +125,7 @@
           return APR_SUCCESS;
       }
       else {
  -        return APR_ENOSTAT;
  +        return errno;
       }
   }