From nobody@hyperreal.com Fri Jan 3 14:13:49 1997 Received: by taz.hyperreal.com (8.8.3/V2.0) id OAA15066; Fri, 3 Jan 1997 14:13:49 -0800 (PST) Message-Id: <199701032213.OAA15066@taz.hyperreal.com> Date: Fri, 3 Jan 1997 14:13:49 -0800 (PST) From: John Bolhuis Reply-To: bolhuijo@eit.com To: apbugs@hyperreal.com Subject: suexec - AIX cannot use setenv X-Send-Pr-Version: 3.2 >Number: 79 >Category: os-aix >Synopsis: suexec - AIX cannot use setenv >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jan 3 14:20:01 1997 >Last-Modified: Fri Jan 24 07:50:43 PST 1997 >Originator: bolhuijo@eit.com >Organization: >Release: 1.2b4 >Environment: AIX 4.1, gcc >Description: suexec.c will not compile: AIX has no setenv, must use putenv instead >How-To-Repeat: >Fix: ..probably not very elegant, and a little too specific, but it works for me.. char *envcmd; /* putenv command for AIX */ ... envcmd = malloc(strlen(SAFE_PATH)+6); strcpy(envcmd,"PATH="); strcat(envcmd,SAFE_PATH); if (putenv(envcmd) != 0) { log_err("cannot reset environment PATH\n"); exit(120); %7 >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Fri Jan 24 07:50:43 PST 1997 State-Changed-Why: Fixed in version 1.11 of suexec.c, which will be included in 1.2b5 when released. >Unformatted: