martin      99/02/21 12:36:45

  Modified:    src/support suexec.c
  Log:
  Use ap_execve() on platforms where exec() doesntttt support "#!"
  
  Revision  Changes    Path
  1.50      +9 -0      apache-1.3/src/support/suexec.c
  
  Index: suexec.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/support/suexec.c,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- suexec.c  1999/02/16 13:41:00     1.49
  +++ suexec.c  1999/02/21 20:36:44     1.50
  @@ -541,7 +541,16 @@
       /*
        * Execute the command, replacing our image with its own.
        */
  +#ifdef NEED_HASHBANG_EMUL
  +    /* We need the #! emulation when we want to execute scripts */
  +    {
  +     extern char **environ;
  +
  +     ap_execve(cmd, &argv[3], environ);
  +    }
  +#else /*NEED_HASHBANG_EMUL*/
       execv(cmd, &argv[3]);
  +#endif /*NEED_HASHBANG_EMUL*/
   
       /*
        * (I can't help myself...sorry.)
  
  
  

Reply via email to