View | Details | Raw Unified | Return to bug 2937 | Differences between
and this patch

Collapse All | Expand All

(-)a/session.c (+2 lines)
Lines 1082-1089 do_setup_env(struct ssh *ssh, Session *s, const char *shell) Link Here
1082
# endif /* HAVE_CYGWIN */
1082
# endif /* HAVE_CYGWIN */
1083
#endif /* HAVE_LOGIN_CAP */
1083
#endif /* HAVE_LOGIN_CAP */
1084
1084
1085
#ifndef USE_PAM
1085
	snprintf(buf, sizeof buf, "%.200s/%.50s", _PATH_MAILDIR, pw->pw_name);
1086
	snprintf(buf, sizeof buf, "%.200s/%.50s", _PATH_MAILDIR, pw->pw_name);
1086
	child_set_env(&env, &envsize, "MAIL", buf);
1087
	child_set_env(&env, &envsize, "MAIL", buf);
1088
#endif
1087
1089
1088
	/* Normal systems set SHELL by default. */
1090
	/* Normal systems set SHELL by default. */
1089
	child_set_env(&env, &envsize, "SHELL", shell);
1091
	child_set_env(&env, &envsize, "SHELL", shell);

Return to bug 2937