apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r376423 - /apr/apr/trunk/file_io/win32/filepath.c
Date Thu, 09 Feb 2006 20:25:24 GMT
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];



Mime
View raw message