Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 12152 invoked by uid 6000); 7 Jul 1999 17:40:19 -0000 Received: (qmail 11721 invoked by uid 2001); 7 Jul 1999 17:40:01 -0000 Date: 7 Jul 1999 17:40:01 -0000 Message-ID: <19990707174001.11713.qmail@hyperreal.org> To: apache-bugdb@apache.org Cc: apache-bugdb@apache.org, From: Craig Comstock Subject: Re: suexec/4709: Reply-To: Craig Comstock Sender: apache-bugdb-owner@apache.org Precedence: bulk The following reply was made to PR suexec/4709; it has been noted by GNATS. From: Craig Comstock To: apbugs@apache.org Cc: Subject: Re: suexec/4709: Date: Wed, 7 Jul 1999 07:19:51 -0500 (CDT) I have fixed the problem... for some reason adding LD_LIBRARY_PATH to the safe_env_lst array did not allow the LD_LIBRARY_PATH var through to the CGI environment. I further modified the suexec.c code to push the LD_LIBRARY_PATH into the cleanenv array. static void clean_env(void) { char pathbuf[512]; > char libpathbuf[512]; < added this line then later... sprintf(libpathbuf,"LD_LIBRARY_PATH=%s","/usr/oracle/lib"); cleanenv[cidx]=strdup(libpathbuf); cidx++; cleanenv[cidx] = NULL; environ = cleanenv; } int main...... Please let me know if this is a good/bad fix, or any better ways to fix this problem! Craig Comstock Web/Database Developer Electrical Engineering and Computer Science Dept. The University of Kansas