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

Re: configurable svn+ssh remote tunnel commands

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 27 Aug 2014 12:40:39 +0000

Stefan Sperling wrote on Wed, Aug 27, 2014 at 11:38:07 +0200:
> As far as I understand the situation, apple is shipping an old svnserve
> in /usr/bin and the user would prefer running a more recent
> /usr/local/bin/svnserve.
> Additionally, overriding per-user environment variables like PATH
> seems to be a very difficult thing to do. I can't judge if this is
> really the case since I don't use MacOS at all.
>

Something like this used to work:

        [tunnels]
        ssh = _t() { h=$1; shift; ssh $1 env VAR=val /path/to/svnserve -t "$@"; }; _t

> The user is requesting a config knob to override the default, to be
> able to specify a full path to svnserve and add other flags to
> svnserve's invocation as desired. This is indeed a fairly trivial
> change. Do we want to add this?
>

I'm not sure, Bert makes a good point that the server admin should
be expected to make his server work with the client default settings.

> Note that, with ssh keys, the server can override the tunnel command
> requested by the client, which is another possible workaround.
>
> This is diff is untested, just a proof of concept.
>

The code seems to be allocating beyond the end of the array ARGV.

Daniel
Received on 2014-08-27 14:41:17 CEST

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.