mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
ssh: remove duplicate setting of MAIL env var
We already set it earlier in do_setup_env().
Fixes: 19261079b7
("openssh: update to OpenSSH v8.7p1")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2184ca3f19
commit
1978059263
|
@ -1077,12 +1077,6 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell)
|
|||
# endif /* HAVE_CYGWIN */
|
||||
#endif /* HAVE_LOGIN_CAP */
|
||||
|
||||
if (!options.use_pam) {
|
||||
snprintf(buf, sizeof buf, "%.200s/%.50s",
|
||||
_PATH_MAILDIR, pw->pw_name);
|
||||
child_set_env(&env, &envsize, "MAIL", buf);
|
||||
}
|
||||
|
||||
/* Normal systems set SHELL by default. */
|
||||
child_set_env(&env, &envsize, "SHELL", shell);
|
||||
|
||||
|
|
Loading…
Reference in a new issue