subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1463410 - /subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c
Date Tue, 02 Apr 2013 07:15:55 GMT
Author: breser
Date: Tue Apr  2 07:15:54 2013
New Revision: 1463410

URL: http://svn.apache.org/r1463410
Log:
Be as specific as possible with error messages about loading authz
configurations in mod_authz_svn.

We were saying AuthzSVNAccessFile even when the AuthzSVNReposRelativeAccessFile
directive had been used.  Now that there is a split groups file, we can't be
sure if it was the AccessFile or the GroupsFile directive that had a problem
if svn_repos_authz_read2() failed.

* subversion/mod_authz_svn/mod_authz_svn.c
  (get_access_conf): If we know the configuration directive that failed
    give it.  If not give a generic description.

Modified:
    subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c

Modified: subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c?rev=1463410&r1=1463409&r2=1463410&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c (original)
+++ subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c Tue Apr  2 07:15:54 2013
@@ -377,6 +377,8 @@ get_access_conf(request_rec *r, authz_sv
   if (svn_err)
     {
       log_svn_error(APLOG_MARK, r,
+                    conf->repo_relative_access_file ? 
+                    "Failed to load the AuthzSVNReposRelativeAccessFile:" :
                     "Failed to load the AuthzSVNAccessFile:",
                     svn_err, scratch_pool);
       return NULL;
@@ -415,7 +417,7 @@ get_access_conf(request_rec *r, authz_sv
       if (svn_err)
         {
           log_svn_error(APLOG_MARK, r,
-                        "Failed to load the AuthzSVNAccessFile:",
+                        "Failed to load the mod_authz_svn config:",
                         svn_err, scratch_pool);
           access_conf = NULL;
         }



Mime
View raw message