Author: stefan2
Date: Tue Nov 15 19:05:25 2016
New Revision: 1769868

URL: http://svn.apache.org/viewvc?rev=1769868&view=rev
Log:
On the authzperf branch:

* subversion/libsvn_repos/deprecated.c
  (svn_repos_authz_read):  Implement the deprecated function in terms of
                           the current API.

Modified:
    subversion/branches/authzperf/subversion/libsvn_repos/deprecated.c

Modified: subversion/branches/authzperf/subversion/libsvn_repos/deprecated.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/authzperf/subversion/libsvn_repos/deprecated.c?rev=1769868&r1=1769867&r2=1769868&view=diff
==============================================================================
--- subversion/branches/authzperf/subversion/libsvn_repos/deprecated.c 
(original)
+++ subversion/branches/authzperf/subversion/libsvn_repos/deprecated.c Tue Nov 
15 19:05:25 2016
@@ -29,6 +29,7 @@
 #include "svn_repos.h"
 #include "svn_compat.h"
 #include "svn_hash.h"
+#include "svn_path.h"
 #include "svn_props.h"
 #include "svn_pools.h"
 
@@ -1175,10 +1176,11 @@ svn_error_t *
 svn_repos_authz_read(svn_authz_t **authz_p, const char *file,
                      svn_boolean_t must_exist, apr_pool_t *pool)
 {
-  apr_pool_t *scratch_pool = svn_pool_create(pool);
-  SVN_ERR(svn_repos__authz_read(authz_p, file, NULL, must_exist,
-                                FALSE, pool, scratch_pool));
-  svn_pool_destroy(scratch_pool);
+  /* Prevent accidental new features in existing API. */
+  if (svn_path_is_url(file))
+    return svn_error_createf(SVN_ERR_ILLEGAL_TARGET, NULL,
+                             "'%s' is not a file name", file);
 
-  return SVN_NO_ERROR;
+  return svn_error_trace(svn_repos_authz_read2(authz_p, file, NULL,
+                                               must_exist, pool));
 }


Reply via email to