httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <>
Subject Re: regarding mod_cgid.c
Date Fri, 12 Oct 2001 21:40:17 GMT
On 12 Oct 2001, hiten pandya wrote:

> i have found out that the shell path has been hard-coded in
> mod_cgid.c:
> (/modules/generators/mod_cgid.c)
> #define SHELL_PATH "/bin/sh"
> hey guys, correct me if i am wrong but, i think shell paths, and
> things like that would be better off not hard coded in the code.

That's true.  But it turns out that that line is not even used.  (I'll
remove it.)  The SHELL_PATH for each platform is defined by APR.  A
program tells APR that the process it is creating is an APR_SHELLCMD and
APR just magically spawns the right shell to run it in.


   Cliff Woolley
   Charlottesville, VA

View raw message