apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/win32 filestat.c
Date Thu, 12 Dec 2002 07:11:54 GMT
wrowe       2002/12/11 23:11:54

  Modified:    file_io/win32 filestat.c
  Log:
    Fix rootpath detection for Win9X so we don't go stat'ing the volume.
    In 95, we lie outright because 95 can't stat a volume.  This patch
    was partially committed in the previous commit.
  
  Revision  Changes    Path
  1.72      +2 -2      apr/file_io/win32/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/filestat.c,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- filestat.c	12 Dec 2002 06:58:54 -0000	1.71
  +++ filestat.c	12 Dec 2002 07:11:54 -0000	1.72
  @@ -543,8 +543,8 @@
       ELSE_WIN_OS_IS_ANSI
       {
           char *root = NULL;
  -        char *test = fname;
  -        rv = apr_filepath_root(&root, &test APR_FILEPATH_NATIVE, pool);
  +        const char *test = fname;
  +        rv = apr_filepath_root(&root, &test, APR_FILEPATH_NATIVE, pool);
           isroot = (root && *root && !(*test));
   
           if ((apr_os_level >= APR_WIN_98) && (!(wanted & APR_FINFO_NAME)
|| isroot))
  
  
  

Mime
View raw message