You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2011/01/28 16:27:34 UTC

svn commit: r1064731 - /subversion/trunk/subversion/svnserve/serve.c

Author: cmpilato
Date: Fri Jan 28 15:27:33 2011
New Revision: 1064731

URL: http://svn.apache.org/viewvc?rev=1064731&view=rev
Log:
With pburba, fix the svnserve tests on Windows.  svnserve was aborting
due to a failed assertion, which in turn was due to ... my coding error.

* subversion/svnserve/serve.c
  (serve): Use the correct path APIs when manipulating 'root' and
    'repos_root', which are dirents, not fspaths.

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=1064731&r1=1064730&r2=1064731&view=diff
==============================================================================
--- subversion/trunk/subversion/svnserve/serve.c (original)
+++ subversion/trunk/subversion/svnserve/serve.c Fri Jan 28 15:27:33 2011
@@ -2998,9 +2998,9 @@ static svn_error_t *find_repos(const cha
   svn_path_remove_components(url_buf,
                              svn_path_component_count(b->fs_path->data));
   b->repos_url = url_buf->data;
-  b->authz_repos_name = svn_fspath__is_child(root, repos_root, pool);
+  b->authz_repos_name = svn_dirent_is_child(root, repos_root, pool);
   if (b->authz_repos_name == NULL)
-    b->repos_name = svn_fspath__basename(repos_root, pool);
+    b->repos_name = svn_dirent_basename(repos_root, pool);
   else
     b->repos_name = b->authz_repos_name;
   b->repos_name = svn_path_uri_encode(b->repos_name, pool);