[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnauthz-validate.c: Tool to validate authz files

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-02-17 21:15:01 CET

Garrett Rooney <rooneg@electricjellyfish.net> writes:

> On 2/17/06, Lieven Govaerts <lgo@mobsol.be> wrote:
>> A new version of svnauthz-validate.c is attached.
>>
>> Changes:
>> - changed return values ( 0 when ok, 1 if not ok, 2 if any error )
>> - added collabnet license
>> - fixed linux build statement for build started in tools folder, changed
>> it to:
>> cc svnauthz-validate.c -o svnauthz-validate -I../subversion/include
>> -I../apr/include -I../apr-util/include -L/usr/local/lib -lsvn_repos-1
>> -lsvn_subr-1
>> - cleanup of pool and apr
>> - pass app.name to svn_cmdline_init
>
> Committed in r18504. Thanks.
>
> For the record, I made a few tweaks. First, you don't need to
> explicitly call apr_terminate, we set up an atexit handler for it in
> svn_cmdline_init. Second, I added a call to svn_handle_error2, since
> it's useful to be able to tell the user what the actual error is. I
> also cleaned up some formatting stuff, but nothing bug.

tools/client-side isn't really correct as this is a server-side
utility.

It should be hooked into the build system via build.conf because a) we
build things in contrib so we should certainly build things in the
main tree, and b) the suggested command doesn't work on my system
without `apr-1-config --cppflags` which would be supplied
automatically if the build system was used.

Could this be extended to call svn_repos_authz_check_access for a
reponame/user/path given on the command line? That would allow
access testing without having to try commits.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 17 21:15:48 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.