From: Todd C. Miller Date: Mon, 18 Oct 1993 00:30:35 +0000 (+0000) Subject: hpux 9 fix, removes SHLIB_PATH X-Git-Tag: SUDO_1_3_0~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c4b258d2464de3239e37d023fd71c2bfa2cd813;p=sudo hpux 9 fix, removes SHLIB_PATH linux patch --- diff --git a/sudo.c b/sudo.c index 9f9ae7a18..6e058b2b5 100644 --- a/sudo.c +++ b/sudo.c @@ -45,7 +45,7 @@ #define MAIN #include -#ifdef hpux +#if defined(hpux) || defined(linux) #include #endif #include @@ -280,7 +280,11 @@ void clean_envp(envp) * omit all LD_* environmental vars */ for (tenvp = Envp; *envp; envp++) +#ifdef hpux + if (strncmp("LD_", *envp, 3) && strcmp("SHLIB_PATH", *envp)) +#else if (strncmp("LD_", *envp, 3)) +#endif /* hpux */ *tenvp++ = *envp; *tenvp = NULL;