subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1380721 - /subversion/trunk/tools/server-side/svnauthz-validate.c
Date Tue, 04 Sep 2012 16:08:56 GMT
Author: danielsh
Date: Tue Sep  4 16:08:55 2012
New Revision: 1380721

URL: http://svn.apache.org/viewvc?rev=1380721&view=rev
Log:
* tools/server-side/svnauthz-validate.c
  (main): Recode and canonicalize dirent arguments in argv.

Modified:
    subversion/trunk/tools/server-side/svnauthz-validate.c

Modified: subversion/trunk/tools/server-side/svnauthz-validate.c
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnauthz-validate.c?rev=1380721&r1=1380720&r2=1380721&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnauthz-validate.c (original)
+++ subversion/trunk/tools/server-side/svnauthz-validate.c Tue Sep  4 16:08:55 2012
@@ -28,9 +28,11 @@
  *
  */
 
+#include "svn_cmdline.h"
+#include "svn_dirent_uri.h"
 #include "svn_pools.h"
 #include "svn_repos.h"
-#include "svn_cmdline.h"
+#include "svn_utf.h"
 
 static int
 usage(const char *argv0)
@@ -57,14 +59,16 @@ main(int argc, const char **argv)
   if (argc != 2 && argc != 4 && argc != 5)
     return usage(argv[0]);
 
-  authz_file = argv[1];
-
   /* Initialize the app.  Send all error messages to 'stderr'.  */
   if (svn_cmdline_init(argv[0], stderr) != EXIT_SUCCESS)
     return 2;
 
   pool = svn_pool_create(NULL);
 
+  /* Grab AUTHZ_FILE from argv. */
+  SVN_INT_ERR(svn_utf_cstring_to_utf8(&authz_file, argv[1], pool));
+  authz_file = svn_dirent_internal_style(authz_file, pool);
+
   /* Read the access file and validate it. */
   err = svn_repos_authz_read(&authz, authz_file, TRUE, pool);
 



Mime
View raw message