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

Re: svn commit invokes $EDITOR not where svn run from

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-08-08 18:35:12 CEST

Marcus Comstedt <marcus@mc.pp.se> writes:

> cmpilato@collab.net writes:
> > Windows has environmental variables for answering this question. I
> > think the ordering is WINTMP, TMP, TEMP, but I can't recall with
> > certainty.
> And you can use them in what you pass to system(), having them
> automagically expanded somewhere along the way. Ok, then no problem
> there, except possibly an API one. If APR should generate the path to
> a tempdir, can it return a path which contains environment variable
> references? Even if it works with system(), will it work with other
> things you might want to do with a tempdir path?

Having said it might be easy, now I'm not so sure. Suppose I try

$ mkdir /tmp/\;rm\ -rf\ /
$ TMPDIR="/tmp/;rm -rf /" svn ci

I don't want that passed straight to system. APR would need to sanity
check the value which could be hard and is platform dependent. I
suppose APR could impose a limited set of acceptable characters.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 8 18:35:59 2002

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.