Author: julianfoad
Date: Fri Jun 17 12:58:03 2011
New Revision: 1136864

URL: http://svn.apache.org/viewvc?rev=1136864&view=rev
Log:
Tweak the code that canonicalizes a UNC path server name to upper case, to avoid
 a dependency on order of evaluation which could corrupt the name.

* subversion/libsvn_subr/dirent_uri.c
  (canonicalize): Tweak.

Modified:
    subversion/trunk/subversion/libsvn_subr/dirent_uri.c

Modified: subversion/trunk/subversion/libsvn_subr/dirent_uri.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/dirent_uri.c?rev=1136864&r1=1136863&r2=1136864&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/dirent_uri.c (original)
+++ subversion/trunk/subversion/libsvn_subr/dirent_uri.c Fri Jun 17 12:58:03 
2011
@@ -500,9 +500,8 @@ canonicalize(path_type_t type, const cha
              Note: normally the share name is treated as case insensitive too,
              but it seems to be possible to configure Samba to treat those as
              case sensitive, so better leave that alone. */
-          dst = canon + 2;
-          while (*dst && *dst != '/')
-            *(dst++) = canonicalize_to_lower(*dst);
+          for (dst = canon + 2; *dst && *dst != '/'; dst++)
+            *dst = canonicalize_to_lower(*dst);
         }
     }
 #endif /* SVN_USE_DOS_PATHS */


Reply via email to