apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r376424 - /apr/apr/branches/1.2.x/file_io/win32/filepath.c
Date Thu, 09 Feb 2006 20:29:53 GMT
Author: wrowe
Date: Thu Feb  9 12:29:50 2006
New Revision: 376424

URL: http://svn.apache.org/viewcvs?rev=376424&view=rev
Log:
Backport: 376423

  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/branches/1.2.x/file_io/win32/filepath.c

Modified: apr/apr/branches/1.2.x/file_io/win32/filepath.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/file_io/win32/filepath.c?rev=376424&r1=376423&r2=376424&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/file_io/win32/filepath.c (original)
+++ apr/apr/branches/1.2.x/file_io/win32/filepath.c Thu Feb  9 12:29:50 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