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

Re: svn commit: r1426399 - /subversion/trunk/tools/server-side/svnauthz-validate.c

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Fri, 28 Dec 2012 15:22:33 +0200

breser_at_apache.org wrote on Fri, Dec 28, 2012 at 04:35:12 -0000:
> Author: breser
> Date: Fri Dec 28 04:35:11 2012
> New Revision: 1426399
>
> URL: http://svn.apache.org/viewvc?rev=1426399&view=rev
> Log:
> Fix errors in usage output for svnauthz-validate.
>
> * tools/server-side/svnauthz-validate.c:
> (usage): Remove duplicate FILE argument and incorrect bracketing.
>
> 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=1426399&r1=1426398&r2=1426399&view=diff
> ==============================================================================
> --- subversion/trunk/tools/server-side/svnauthz-validate.c (original)
> +++ subversion/trunk/tools/server-side/svnauthz-validate.c Fri Dec 28 04:35:11 2012
> @@ -45,7 +45,7 @@ enum {
> static int
> usage(const char *argv0)
> {
> - printf("Usage: %s FILE [--username USER [--path FSPATH] [--repository REPOS_NAME]] FILE\n\n", argv0);
> + printf("Usage: %s [--username USER] [--path FSPATH] [--repository REPOS_NAME] FILE\n\n", argv0);

That's the wrong fix.

The code is:

  if (os->ind + 1 != argc || (!opts.username && (opts.fspath || opts.repos_name)))

So the bracketing should be:

     printf("Usage: %s [--username USER [[--path FSPATH] [--repository REPOS_NAME]] FILE\n\n", argv0);

> printf("Loads the authz file at FILE and validates its syntax.\n"
> "Optionally prints the access available to USER for FSPATH in\n"
> "repository with authz name REPOS_NAME. If FSPATH is omitted, reports\n"
>
>
Received on 2012-12-28 14:23:29 CET

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.