On Wed, 22 Dec 2004 14:22:45 -0500, Greg Hudson <ghudson@MIT.EDU> wrote:
> On Wed, 2004-12-22 at 14:15, Justin Erenkrantz wrote:
>> Yes, it does. httpd always resets the environment for CGI scripts except for
>> a very small subset of environment variables. Most notably, PATH is retained:
>> see ap_add_common_vars in util_script.c. And, even then the #1 complaint we
>> always get with respect to CGI scripts is that the PATH differs from user to
>> user depending upon who starts it. (This causes chaos when you use sudo, etc.)
>
> Interesting. (That's one of the motivations of djb's daemontool's
> package, incidentally, but insisting on starting everything from init is
> probably overkill.)
>
> I still feel that it's pretty bogus in the case of file:// and
> svn+ssh://. Not sure how to differentiate between those cases, though.
I just ran into this problem (in the context of file:// and
svn+ssh://).
It took me a while to track down because I am so used to taking for
granted that shell scripts inherit environmental variables.
If you are not planning to change this, I suggest you put suitable
warnings in the template files in the hook subdirectory of the
repository. Most people look at these before creating their own hook
scripts.
Faheem.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 16 06:33:23 2005