From 13691493091367cc4e15a2b7ff3cc104714b3990 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 25 Sep 2012 10:29:16 -0600 Subject: [PATCH] oops, missed block move in the merge now fixed --- plugins/sudoers/env.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/sudoers/env.c b/plugins/sudoers/env.c index 962228c..9b043b2 100644 --- a/plugins/sudoers/env.c +++ b/plugins/sudoers/env.c @@ -741,15 +741,6 @@ rebuild_env(void) env_update_didvar(*ep, &didvar); } - /* Reset HOME based on target user if configured to. */ - if (ISSET(sudo_mode, MODE_RUN)) { - if (def_always_set_home || - ISSET(sudo_mode, MODE_RESET_HOME | MODE_LOGIN_SHELL) || - (ISSET(sudo_mode, MODE_SHELL) && def_set_home)) - reset_home = TRUE; - } - - if (def_env_reset || ISSET(sudo_mode, MODE_LOGIN_SHELL)) { /* Pull in vars we want to keep from the old environment. */ for (ep = old_envp; *ep; ep++) { bool keepit; -- 2.47.2