subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1210195 - /subversion/trunk/subversion/svnserve/serve.c
Date Sun, 04 Dec 2011 20:13:02 GMT
Author: danielsh
Date: Sun Dec  4 20:13:01 2011
New Revision: 1210195

URL: http://svn.apache.org/viewvc?rev=1210195&view=rev
Log:
Canonicalize svnserve.conf input.

Found by: Justin Finkelstein <justin@redwiredesign.com>

* subversion/svnserve/serve.c
  (load_configs): Canonicalize password-db and authz-db 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=1210195&r1=1210194&r2=1210195&view=diff
==============================================================================
--- subversion/trunk/subversion/svnserve/serve.c (original)
+++ subversion/trunk/subversion/svnserve/serve.c Sun Dec  4 20:13:01 2011
@@ -243,6 +243,7 @@ svn_error_t *load_configs(svn_config_t *
   *pwdb = NULL;
   if (pwdb_path)
     {
+      pwdb_path = svn_dirent_canonicalize(pwdb_path, pool);
       pwdb_path = svn_dirent_join(base, pwdb_path, pool);
 
       err = svn_config_read2(pwdb, pwdb_path, TRUE, FALSE, pool);
@@ -290,6 +291,7 @@ svn_error_t *load_configs(svn_config_t *
     {
       const char *case_force_val;
 
+      authzdb_path = svn_dirent_canonicalize(authzdb_path, pool);
       authzdb_path = svn_dirent_join(base, authzdb_path, pool);
       err = svn_repos_authz_read(authzdb, authzdb_path, TRUE, pool);
       if (err)



Mime
View raw message