Only need sudo_setenv/sudo_unsetenv if we are going to use

ldap_sasl_interactive_bind_s() but don't have gss_krb5_ccache_name().
This commit is contained in:
Todd C. Miller
2007-07-22 19:19:39 +00:00
parent fd711b6297
commit c94a3d6245

2
env.c
View File

@@ -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.