The documentation implies that all children processes will be affected
by the setenv command, so convert all the exec calls to use
mutt_envlist().
The setenv("GPG_TTY") call is no longer needed so remove it.
With that removed, there are no other setenv calls in mutt, so remove
the autoconf check and replacement function.
/* Don't let the subprocess think it can use the controlling tty */
setsid();
- execl(EXECSHELL, "sh", "-c", Tunnel, NULL);
+ execle(EXECSHELL, "sh", "-c", Tunnel, NULL, mutt_envlist());
_exit(127);
}
mutt_unblock_signals_system(1);
return false;
if ((tty = ttyname(0)))
- {
- setenv("GPG_TTY", tty, 0);
mutt_envlist_set("GPG_TTY", tty, false);
- }
return true;
}
_exit(S_ERR);
}
- execvp(path, args);
+ execvpe(path, args, mutt_envlist());
_exit(S_ERR);
}
else if (pid == -1)