]> granicus.if.org Git - sudo/commitdiff
hpux 9 fix, removes SHLIB_PATH
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 18 Oct 1993 00:30:35 +0000 (00:30 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 18 Oct 1993 00:30:35 +0000 (00:30 +0000)
linux patch

sudo.c

diff --git a/sudo.c b/sudo.c
index 9f9ae7a18cc8bc064b8fd91c395ade3b4751a53a..6e058b2b5f6d6367c32103352a460ad0e5b789d1 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -45,7 +45,7 @@
 #define MAIN
 
 #include <stdio.h>
-#ifdef hpux
+#if defined(hpux) || defined(linux)
 #include <unistd.h>
 #endif
 #include <string.h>
@@ -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;