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/unix filepath.c
Date Fri, 24 Aug 2001 01:45:39 GMT
wrowe       01/08/23 18:45:39

  Modified:    file_io/unix filepath.c
  Log:
    The **dir should be advanced over the leading 'root' (/+).
  
    Returning a path is APR_SUCCESS
  
  Revision  Changes    Path
  1.6       +4 -2      apr/file_io/unix/filepath.c
  
  Index: filepath.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filepath.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- filepath.c	2001/07/26 16:08:21	1.5
  +++ filepath.c	2001/08/24 01:45:39	1.6
  @@ -102,8 +102,10 @@
       if (**inpath == '/') 
       {
           *rootpath = apr_pstrdup(p, "/");
  -        ++*inpath;
  -        return APR_EABSOLUTE;
  +        do {
  +            ++(*inpath);
  +        } while (*inpath == '/');
  +        return APR_SUCCESS;
       }
   
       return APR_ERELATIVE;
  
  
  

Mime
View raw message