You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1997/02/20 00:41:09 UTC

[PATCH] PR#179 cool, another suexec environment problem

I think this patch speaks for itself?

Index: suexec.c
===================================================================
RCS file: /export/home/cvs/apache/support/suexec.c,v
retrieving revision 1.17
diff -c -r1.17 suexec.c
*** suexec.c	1997/02/13 14:42:08	1.17
--- suexec.c	1997/02/19 23:37:54
***************
*** 203,209 ****
      }
  
      sprintf(pathbuf, "PATH=%s", SAFE_PATH);
!     cleanenv[cidx] = pathbuf;
      cleanenv[++cidx] = NULL;
  	    
      environ = cleanenv;
--- 203,209 ----
      }
  
      sprintf(pathbuf, "PATH=%s", SAFE_PATH);
!     cleanenv[cidx] = strdup(pathbuf);
      cleanenv[++cidx] = NULL;
  	    
      environ = cleanenv;