httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject [PATCH] PR#179 cool, another suexec environment problem
Date Wed, 19 Feb 1997 23:41:09 GMT
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;


Mime
View raw message