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 2006/02/09 21:25:24 UTC
svn commit: r376423 - /apr/apr/trunk/file_io/win32/filepath.c
Author: wrowe
Date: Thu Feb 9 12:25:22 2006
New Revision: 376423
URL: http://svn.apache.org/viewcvs?rev=376423&view=rev
Log:
This branch of the code reflects that no machine name is given,
such that the entire path is '//' or '\\'. Therefore we can't
tweak the 'middle' seperator e.g. '\\foo\bar' to '//foo/bar',
as the bug indicates we were overwriting the trailing null with
the '/' portable seperator and therefore the string was not
even terminated. '\\' should become simply '//' with TRUENAME,
non-native name.
PR: 31878
Modified:
apr/apr/trunk/file_io/win32/filepath.c
Modified: apr/apr/trunk/file_io/win32/filepath.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/file_io/win32/filepath.c?rev=376423&r1=376422&r2=376423&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/filepath.c (original)
+++ apr/apr/trunk/file_io/win32/filepath.c Thu Feb 9 12:25:22 2006
@@ -255,9 +255,6 @@
}
else {
newpath = apr_pstrndup(p, testpath, delim1 - testpath);
- if (flags & APR_FILEPATH_TRUENAME) {
- newpath[delim1 - testpath] = seperator[0];
- }
}
if (flags & APR_FILEPATH_TRUENAME) {
newpath[0] = seperator[0];