summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-09-14 23:19:47 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-09-14 23:19:47 +0000
commit04f09fc4a6546194a4044b30936499284b2f4fa9 (patch)
treef0586be3ae6a9b2a0e2ca2bc9375dd6b61b22c32 /file_io
parent1712868760e1dc1d93ac5a47c7ce081c9b025827 (diff)
downloadlibapr-04f09fc4a6546194a4044b30936499284b2f4fa9.tar.gz
Changed the NetWare deconstruct() if statement to look for a specific error.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62324 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/win32/filepath.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/file_io/win32/filepath.c b/file_io/win32/filepath.c
index f48ecbcc3..3250294b6 100644
--- a/file_io/win32/filepath.c
+++ b/file_io/win32/filepath.c
@@ -93,13 +93,15 @@ APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath,
/* Split the inpath into its separate parts. If it fails then
we know we have a bad path.
*/
- if (deconstruct(testpath, server, volume, path, file, NULL, &elements, PATH_UNDEF))
- return APR_EBADPATH;
+ if (deconstruct(testpath, server, volume, path, file, NULL, &elements, PATH_UNDEF)) {
+ if (errno == EINVAL)
+ return APR_EBADPATH;
+ }
/* If we got a volume part then continue splitting out the root.
Otherwise we either have an incomplete or relative path
*/
- if (strlen(volume) > 0) {
+ if (volume && strlen(volume) > 0) {
newpath = apr_pcalloc(p, strlen(server)+strlen(volume)+5);
construct(newpath, server, volume, NULL, NULL, NULL, PATH_NETWARE);