bnicholes 2003/01/09 08:21:53
Modified: file_io/win32 filepath.c
Log:
Since deconstruct() does not actually validate the path, the check is
meaningless.
Revision Changes Path
1.37 +2 -7 apr/file_io/win32/filepath.c
Index: filepath.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/filepath.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- filepath.c 7 Jan 2003 00:52:53 -0000 1.36
+++ filepath.c 9 Jan 2003 16:21:53 -0000 1.37
@@ -105,13 +105,8 @@
the path since we won't use the deconstructed information anyway.
*/
if (volsep) {
- /* 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)) {
- if (errno == EINVAL)
- return APR_EBADPATH;
- }
+ /* Split the inpath into its separate parts. */
+ deconstruct(testpath, server, volume, path, file, NULL, &elements,
PATH_UNDEF);
/* If we got a volume part then continue splitting out the root.
Otherwise we either have an incomplete or relative path