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:
2
env.c
2
env.c
@@ -261,6 +261,7 @@ _sudo_setenv(var, val, dupcheck)
|
|||||||
insert_env(estring, dupcheck, FALSE);
|
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
|
* External version of sudo_setenv() that keeps things in sync with
|
||||||
* the environ pointer.
|
* 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.
|
* Insert str into env.envp, assumes str has an '=' in it.
|
||||||
|
Reference in New Issue
Block a user