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

Re: Hook scripts run with empty environment

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-12-22 20:22:45 CET

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 22 20:24:07 2004

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.