Add support for a sudo-i pam.d file to be used for "sudo -i".

Adapted from a RedHat patch.
This commit is contained in:
Todd C. Miller
2010-07-12 17:57:53 -04:00
parent 684d1fd9f7
commit d9de7b5f8e
7 changed files with 65 additions and 20 deletions

View File

@@ -407,7 +407,7 @@ matches_env_keep(const char *var)
* Also adds sudo-specific variables (SUDO_*).
*/
void
rebuild_env(int sudo_mode, int noexec)
rebuild_env(int noexec)
{
char **old_envp, **ep, *cp, *ps1;
char idbuf[MAX_UID_T_LEN];