Josef Wolf <jw@raven.inka.de>


Patch
r844630

r844630 | kfogel | 2003-01-23 20:55:42 -0600 (Thu, 23 Jan 2003)

Allow symlinked hook scripts to run, by offering an alternative
path-checking function that resolves symlinks.

Patch by: Josef Wolf <jw@raven.inka.de>
(Tweaked by me.)

* subversion/include/svn_io.h
  (svn_io_check_resolved_path): New prototype.

* subversion/libsvn_subr/io.c
  (io_check_path): New function, contains the code from
    svn_io_check_path, but with new parameter 'resolve_symlinks'.
    Also, fix a comment while at it.
  (svn_io_check_path): Just wrap io_check_path, and pass false for the
    new flag, to maintain old semantics.
  (svn_io_check_resolved_path): New function; same as
    svn_io_check_path, but pass new flag as true, to resolve links.

* subversion/libsvn_repos/hooks.c
  (svn_repos__hooks_start_commit, svn_repos__hooks_pre_commit,
   svn_repos__hooks_post_commit,  svn_repos__hooks_pre_revprop_change,
   svn_repos__hooks_post_revprop_change): Changed callers to use
    svn_io_check_resolved_path instead of svn_io_check_path.