subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1435988 - /subversion/trunk/subversion/svnserve/serve.c
Date Sun, 20 Jan 2013 22:30:12 GMT
Author: rhuijben
Date: Sun Jan 20 22:30:12 2013
New Revision: 1435988

URL: http://svn.apache.org/viewvc?rev=1435988&view=rev
Log:
To close issue #3091, "Windows absolute paths in svnserve.conf" use
svn_dirent_internal_style() to parse user provided paths in two places
inside svnserve.

* subversion/svnserve/serve.c
  (load_pwdb_config,
   load_authz_config): Use svn_dirent_internal_style() instead of
     svn_dirent_canonicalize() on user provided paths.

Modified:
    subversion/trunk/subversion/svnserve/serve.c

Modified: subversion/trunk/subversion/svnserve/serve.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnserve/serve.c?rev=1435988&r1=1435987&r2=1435988&view=diff
==============================================================================
--- subversion/trunk/subversion/svnserve/serve.c (original)
+++ subversion/trunk/subversion/svnserve/serve.c Sun Jan 20 22:30:12 2013
@@ -234,7 +234,7 @@ svn_error_t *load_pwdb_config(server_bat
   server->pwdb = NULL;
   if (pwdb_path)
     {
-      pwdb_path = svn_dirent_canonicalize(pwdb_path, pool);
+      pwdb_path = svn_dirent_internal_style(pwdb_path, pool);
       pwdb_path = svn_dirent_join(server->base, pwdb_path, pool);
 
       err = svn_config_read2(&server->pwdb, pwdb_path, TRUE, FALSE, pool);
@@ -293,7 +293,7 @@ svn_error_t *load_authz_config(server_ba
         }
       else if (!svn_path_is_repos_relative_url(authzdb_path))
         {
-          authzdb_path = svn_dirent_canonicalize(authzdb_path, pool);
+          authzdb_path = svn_dirent_internal_style(authzdb_path, pool);
           authzdb_path = svn_dirent_join(server->base, authzdb_path, pool);
         }
       err = svn_repos_authz_read2(&server->authzdb, authzdb_path, TRUE,



Mime
View raw message