diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-08-24 01:45:39 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-08-24 01:45:39 +0000 |
commit | cdee01080a89e3878ecb17d670a314b29ff106e3 (patch) | |
tree | 2c554cce440fd948474e7b2c63b2ec881824fba2 /file_io/unix/filepath.c | |
parent | be631807342a043d1372d641c1e7236bef2e36d0 (diff) | |
download | apr-cdee01080a89e3878ecb17d670a314b29ff106e3.tar.gz apr-cdee01080a89e3878ecb17d670a314b29ff106e3.zip |
The **dir should be advanced over the leading 'root' (/+).
Returning a path is APR_SUCCESS
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62215 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix/filepath.c')
-rw-r--r-- | file_io/unix/filepath.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/file_io/unix/filepath.c b/file_io/unix/filepath.c index 22eb45ee4..a93291d3e 100644 --- a/file_io/unix/filepath.c +++ b/file_io/unix/filepath.c @@ -102,8 +102,10 @@ APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath, if (**inpath == '/') { *rootpath = apr_pstrdup(p, "/"); - ++*inpath; - return APR_EABSOLUTE; + do { + ++(*inpath); + } while (*inpath == '/'); + return APR_SUCCESS; } return APR_ERELATIVE; |