FreeBSD/contrib/subversion/subversion/svnserve/serve.c
/* Create an svn_fs_access_t in POOL for USER and associate it with
   B's filesystem.  Also, register a cleanup handler with POOL which
   de-associates the svn_fs_access_t from B's filesystem. */
Create an svn_fs_access_t in POOL for USER and associate it with
B's filesystem.  Also, register a cleanup handler with POOL which
de-associates the svn_fs_access_t from B's filesystem.
Create an svn_fs_access_t in POOL for USER and associate it with B ' s filesystem . Also register a cleanup handler with POOL which de - associates the svn_fs_access_t from B ' s filesystem .
static svn_error_t *
create_fs_access(server_baton_t *b, apr_pool_t *pool)
{
  svn_fs_access_t *fs_access;
  struct cleanup_fs_access_baton *cleanup_baton;
  if (!b->client_info->user)
    return SVN_NO_ERROR;
  SVN_ERR(svn_fs_create_access(&fs_access, b->client_info->user, pool));
  SVN_ERR(svn_fs_set_access(b->repository->fs, fs_access));
  cleanup_baton = apr_pcalloc(pool, sizeof(*cleanup_baton));
  cleanup_baton->pool = pool;
  cleanup_baton->fs = b->repository->fs;
  apr_pool_cleanup_register(pool, cleanup_baton, cleanup_fs_access,
                            apr_pool_cleanup_null);
  return SVN_NO_ERROR;
}
static svn_error_t * create_fs_access ( server_baton_t * b , apr_pool_t * pool ) { svn_fs_access_t * fs_access ; struct cleanup_fs_access_baton * cleanup_baton ; if ( ! b -> client_info -> user ) return SVN_NO_ERROR ; SVN_ERR ( svn_fs_create_access ( & fs_access , b -> client_info -> user , pool ) ) ; SVN_ERR ( svn_fs_set_access ( b -> repository -> fs , fs_access ) ) ; cleanup_baton = apr_pcalloc ( pool , sizeof ( * cleanup_baton ) ) ; cleanup_baton -> pool = pool ; cleanup_baton -> fs = b -> repository -> fs ; apr_pool_cleanup_register ( pool , cleanup_baton , cleanup_fs_access , apr_pool_cleanup_null ) ; return SVN_NO_ERROR ; }
Create an svn_fs_access_t in POOL for USER and associate it with
B's filesystem.
Create an svn_fs_access_t in POOL for USER and associate it with B ' s filesystem .