Received: by taz.hyperreal.com (8.8.4/V2.0) id PAA26872; Wed, 19 Feb 1997 15:41:11 -0800 (PST) Received: from scanner.worldgate.com by taz.hyperreal.com (8.8.4/V2.0) with ESMTP id PAA26851; Wed, 19 Feb 1997 15:41:07 -0800 (PST) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.5/8.7.3) with UUCP id QAA25981 for new-httpd@hyperreal.com; Wed, 19 Feb 1997 16:41:04 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id QAA01866 for ; Wed, 19 Feb 1997 16:41:10 -0700 (MST) Date: Wed, 19 Feb 1997 16:41:09 -0700 (MST) From: Marc Slemko To: new-httpd@hyperreal.com Subject: [PATCH] PR#179 cool, another suexec environment problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com 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;