/[Apache-SVN]
ViewVC logotype

Revision 1428209


Jump to revision: Previous Next
Author: breser
Date: Thu Jan 3 08:19:36 2013 UTC (11 years, 3 months ago)
Changed paths: 5
Log Message:
Issue #4284: Rename svnauthz-validate to svnauthz and start using subcommands.

svnauthz now has a validate and accessof subcommands.  If run with an argv[0]
that starts with 'svnauthz-validate' it enables a compat mode that behaves
almost exactly as svnauthz-validate did in 1.7.  Only difference being that
it will accept file:// URLs.  On UNIX we install a symlink as part of
the install-tools target now to make the old command work.

* Makefile.in
  (INSTALL_EXTRA_TOOLS): symlink svnauthz-validate to svnauthz

* build/win32/make_dist.py
  (_disttree): Rename svnauthz-validate.exe to svnauthz.exe

* build.conf
  (__ALL__, svnauthz-validate, svnauthz): Rename svnauthz-validate to svnauthz

* tools/server-side/svnauthz-validate.c: Rename to ... 

* tools/server-side/svnauthz.c
  (svnauthz__cmdline_options_t): Replace an anonymous enum.
  (options_table): Move options struct from sub_main().
  (svnauthz_opt_state): typedef previous anonymous opts struct in sub_main().
  (SVNAUTHZ_COMPAT_NAME): prefix of command name to enter compat mode.
  (usage, subcommand_help): Replace usage() with subcommand_help().
  (cmd_table): New struct for subcommands.
  (get_authz, subcommand_validate, subcommand_accessof): New functions, split
    off from sub_main().
  (EXIT_FAILURE): Redefine to 2 to match our contract.
  (handle_exit_error, EXIT_ERROR): Add exit_code argument.
  (SVN_INT_ERR): Pass EXIT_FAILURE to EXIT_ERROR().
  (use_compat_mode): New function.
  (sub_main): Refactor to use subcommands and support compat mode.
  (main): Use EXIT_FAILURE instead of hardcoded 2.


Changed paths

Path Details
Directorysubversion/trunk/Makefile.in modified , text changed
Directorysubversion/trunk/build/win32/make_dist.py modified , text changed
Directorysubversion/trunk/build.conf modified , text changed
Directorysubversion/trunk/tools/server-side/svnauthz-validate.c deleted
Directorysubversion/trunk/tools/server-side/svnauthz.c
(Copied from subversion/trunk/tools/server-side/svnauthz-validate.c, r1427958)
added , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26