Re: Subversion, PHP and Web development
From: Perry E. Metzger <perry_at_piermont.com>
Date: 2004-02-23 20:17:29 CET
Ben Collins-Sussman <sussman@collab.net> writes:
For safety, I'd do an exec instead, and clean the environment vars.
This is pretty easy to do, of course, just have a variable like:
char *newenv[] = { "PATH=/bin:/usr/bin", "SHELL=/bin/sh", NULL };
to contain your smashed environment, then:
execle("/usr/local/bin/svn", "svn", "update", "/home/sussman/public_html", newenv);
You have far fewer worries that way.
Perry
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.