mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-16 10:37:38 -05:00
Uppity: clear some key environment vars in subprocesses.
My helper scripts for invoking Uppity have been manually unsetting things like XAUTHORITY and SSH_AUTH_SOCK, to avoid accidentally passing them through from my primary login session, so that I don't get confused about whether agent forwarding is happening, or end up with one DISPLAY going with a different XAUTHORITY. Now I clear these within Uppity itself, so the wrapping script won't have to.
This commit is contained in:
@ -102,7 +102,8 @@ Channel *sesschan_new(SshChannel *c, LogContext *logctx,
|
||||
|
||||
Backend *pty_backend_create(
|
||||
Seat *seat, LogContext *logctx, Conf *conf, char **argv, const char *cmd,
|
||||
struct ssh_ttymodes ttymodes, bool pipes_instead_of_pty);
|
||||
struct ssh_ttymodes ttymodes, bool pipes_instead_of_pty,
|
||||
const char *const *env_vars_to_unset);
|
||||
int pty_backend_exit_signum(Backend *be);
|
||||
ptrlen pty_backend_exit_signame(Backend *be, char **aux_msg);
|
||||
|
||||
|
Reference in New Issue
Block a user