You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/08/24 03:45:39 UTC
cvs commit: apr/file_io/unix filepath.c
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;