You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2012/12/21 23:01:41 UTC

svn commit: r1425160 - /subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c

Author: breser
Date: Fri Dec 21 22:01:41 2012
New Revision: 1425160

URL: http://svn.apache.org/viewvc?rev=1425160&view=rev
Log:
Fix the lack of the spacing of messages in the chain of errors in mod_authz_svn.

In paarticular the default message for an error code would not have been
space separated from other messages and an error with a explicit message
would have had a trailing space if it was the last message.

* subversion/mod_authz_svn/mod_authz_svn.c
  (log_svn_error): Move the insertion of the space to the top of the loop.
  (get_access_conf,req_check_access,subreq_bypass2): Remove the trailing space
    in the prefix passed by the callers to log_svn_error().  log_svn_error()
    will now add it.

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=1425160&r1=1425159&r2=1425160&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c (original)
+++ subversion/trunk/subversion/mod_authz_svn/mod_authz_svn.c Fri Dec 21 22:01:41 2012
@@ -236,10 +236,10 @@ log_svn_error(LOG_ARGS_SIGNATURE,
   /* Build the error chain into a space separated stringbuf. */
   while (err_pos)
     {
+      svn_stringbuf_appendbyte(buff, ' ');
       if (err_pos->message)
         {
           svn_stringbuf_appendcstr(buff, err_pos->message);
-          svn_stringbuf_appendbyte(buff, ' ');
         }
       else
         {
@@ -316,7 +316,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 AuthzSVNAccessFile:",
                         svn_err, scratch_pool);
           access_conf = NULL;
         }
@@ -559,7 +559,7 @@ req_check_access(request_rec *r,
       if (svn_err)
         {
           log_svn_error(APLOG_MARK, r,
-                        "Failed to perform access control: ",
+                        "Failed to perform access control:",
                         svn_err, r->pool);
 
           return DECLINED;
@@ -596,7 +596,7 @@ req_check_access(request_rec *r,
       if (svn_err)
         {
           log_svn_error(APLOG_MARK, r,
-                        "Failed to perform access control: ",
+                        "Failed to perform access control:",
                         svn_err, r->pool);
 
           return DECLINED;
@@ -658,7 +658,7 @@ subreq_bypass2(request_rec *r,
       if (svn_err)
         {
           log_svn_error(APLOG_MARK, r,
-                        "Failed to perform access control: ",
+                        "Failed to perform access control:",
                         svn_err, scratch_pool);
           return HTTP_FORBIDDEN;
         }