oops, missed block move in the merge now fixed 1.8.5p2-1_bpo60+1
authorBdale Garbee <bdale@gag.com>
Tue, 25 Sep 2012 16:29:16 +0000 (10:29 -0600)
committerBdale Garbee <bdale@gag.com>
Tue, 25 Sep 2012 16:29:16 +0000 (10:29 -0600)
plugins/sudoers/env.c

index 962228ccf4e7e985e90ae2b585506fb1f8bc3e76..9b043b282eb756d7a76e9912119a30e03a13da06 100644 (file)
@@ -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;