apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/file_io/netware filesys.c
Date Tue, 04 Mar 2003 00:08:18 GMT
bnicholes    2003/03/03 16:08:18

  Modified:    file_io/netware filesys.c
  Log:
  Implemented the functionality for the APR_FILEPATH_NATIVE flag in
  apr_filepath_get()
  
  Revision  Changes    Path
  1.9       +6 -0      apr/file_io/netware/filesys.c
  
  Index: filesys.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/netware/filesys.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- filesys.c	7 Jan 2003 00:52:51 -0000	1.8
  +++ filesys.c	4 Mar 2003 00:08:17 -0000	1.9
  @@ -124,6 +124,12 @@
           ptr = path;
       }
       *rootpath = apr_pstrdup(p, ptr);
  +    if (!(flags & APR_FILEPATH_NATIVE)) {
  +        for (ptr = *rootpath; *ptr; ++ptr) {
  +            if (*ptr == '\\')
  +                *ptr = '/';
  +        }
  +    }
       return APR_SUCCESS;
   }
   
  
  
  

Mime
View raw message