summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2003-03-04 00:08:17 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2003-03-04 00:08:17 +0000
commit147a953df796db557c6f92db8da7072f60c5757a (patch)
treefe029d5c0a2c32661b85e110dd85616ee1fa9ec0 /file_io
parent9e0068623ea097baf468eb2905f6b86b82e92ecc (diff)
downloadlibapr-147a953df796db557c6f92db8da7072f60c5757a.tar.gz
Implemented the functionality for the APR_FILEPATH_NATIVE flag in
apr_filepath_get() git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/netware/filesys.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/file_io/netware/filesys.c b/file_io/netware/filesys.c
index 30a160047..ff77c7f9e 100644
--- a/file_io/netware/filesys.c
+++ b/file_io/netware/filesys.c
@@ -124,6 +124,12 @@ APR_DECLARE(apr_status_t) apr_filepath_get(char **rootpath, apr_int32_t flags,
ptr = path;
}
*rootpath = apr_pstrdup(p, ptr);
+ if (!(flags & APR_FILEPATH_NATIVE)) {
+ for (ptr = *rootpath; *ptr; ++ptr) {
+ if (*ptr == '\\')
+ *ptr = '/';
+ }
+ }
return APR_SUCCESS;
}