]> granicus.if.org Git - sudo/commitdiff
Only need sudo_setenv/sudo_unsetenv if we are going to use
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 22 Jul 2007 19:19:39 +0000 (19:19 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 22 Jul 2007 19:19:39 +0000 (19:19 +0000)
ldap_sasl_interactive_bind_s() but don't have gss_krb5_ccache_name().

env.c

diff --git a/env.c b/env.c
index 9c93b2c43d3aad4df99db7e4dcd3f1e2740bdddf..901c35e98469a06ec0cfe95d0e06ff3e6129fd2d 100644 (file)
--- a/env.c
+++ b/env.c
@@ -261,6 +261,7 @@ _sudo_setenv(var, val, dupcheck)
     insert_env(estring, dupcheck, FALSE);
 }
 
+#if defined(HAVE_LDAP_SASL_INTERACTIVE_BIND_S) && !defined(HAVE_GSS_KRB5_CCACHE_NAME)
 /*
  * External version of sudo_setenv() that keeps things in sync with
  * the environ pointer.
@@ -316,6 +317,7 @@ sudo_unsetenv(var)
        }
     }
 }
+#endif /* HAVE_LDAP_SASL_INTERACTIVE_BIND_S && !HAVE_GSS_KRB5_CCACHE_NAME */
 
 /*
  * Insert str into env.envp, assumes str has an '=' in it.