You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ne...@apache.org on 2013/03/27 20:22:57 UTC

svn commit: r1461810 - /subversion/trunk/subversion/libsvn_repos/commit.c

Author: neels
Date: Wed Mar 27 19:22:57 2013
New Revision: 1461810

URL: http://svn.apache.org/r1461810
Log:
Cosmetic.

* subversion/libsvn_repos/commit.c
  (check_cntrl): Rename to...
  (check_valid_path): ...this.
  (add_file_or_directory): Move comment to function check_valid_path().

Modified:
    subversion/trunk/subversion/libsvn_repos/commit.c

Modified: subversion/trunk/subversion/libsvn_repos/commit.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/commit.c?rev=1461810&r1=1461809&r2=1461810&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/commit.c (original)
+++ subversion/trunk/subversion/libsvn_repos/commit.c Wed Mar 27 19:22:57 2013
@@ -314,9 +314,10 @@ illegal_path_escape(const char *path, ap
   return retstr->data;
 }
 
+/* Reject paths which contain control characters (related to issue #4340). */
 static svn_error_t *
-check_cntrl(const char *path,
-            apr_pool_t *pool)
+check_valid_path(const char *path,
+                 apr_pool_t *pool)
 {
   const char *c;
 
@@ -350,8 +351,7 @@ add_file_or_directory(const char *path,
   svn_boolean_t was_copied = FALSE;
   const char *full_path;
 
-  /* Reject paths which contain control characters (related to issue #4340). */
-  SVN_ERR(check_cntrl(path, pool));
+  SVN_ERR(check_valid_path(path, pool));
 
   full_path = svn_fspath__join(eb->base_path,
                                svn_relpath_canonicalize(path, pool), pool);