subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ne...@apache.org
Subject svn commit: r1461810 - /subversion/trunk/subversion/libsvn_repos/commit.c
Date Wed, 27 Mar 2013 19:22:57 GMT
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);



Mime
View raw message