subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1615411 - /subversion/branches/authzperf/subversion/svnserve/serve.c
Date Sun, 03 Aug 2014 15:39:42 GMT
Author: stefan2
Date: Sun Aug  3 15:39:42 2014
New Revision: 1615411

URL: http://svn.apache.org/r1615411
Log:
Reduce svnserve's authz overhead.

* subversion/svnserve/serve.c
  (authz_check_access): The new authz handles non-normalized paths
                        just fine as long as they start with a "/".
                        Add the "/" only if missing.  This code is
                        now also in line with its commentary.

Modified:
    subversion/branches/authzperf/subversion/svnserve/serve.c

Modified: subversion/branches/authzperf/subversion/svnserve/serve.c
URL: http://svn.apache.org/viewvc/subversion/branches/authzperf/subversion/svnserve/serve.c?rev=1615411&r1=1615410&r2=1615411&view=diff
==============================================================================
--- subversion/branches/authzperf/subversion/svnserve/serve.c (original)
+++ subversion/branches/authzperf/subversion/svnserve/serve.c Sun Aug  3 15:39:42 2014
@@ -443,7 +443,7 @@ static svn_error_t *authz_check_access(s
      absolute path. Passing such a malformed path to the authz
      routines throws them into an infinite loop and makes them miss
      ACLs. */
-  if (path)
+  if (path && *path != '/')
     path = svn_fspath__canonicalize(path, pool);
 
   /* If we have a username, and we've not yet used it + any username



Mime
View raw message