|
Lines 1050-1057
do_setup_env(struct ssh *ssh, Session *s, const char *shell)
Link Here
|
| 1050 |
# endif /* HAVE_CYGWIN */ |
1050 |
# endif /* HAVE_CYGWIN */ |
| 1051 |
#endif /* HAVE_LOGIN_CAP */ |
1051 |
#endif /* HAVE_LOGIN_CAP */ |
| 1052 |
|
1052 |
|
| 1053 |
snprintf(buf, sizeof buf, "%.200s/%.50s", _PATH_MAILDIR, pw->pw_name); |
1053 |
if (!options.use_pam) |
| 1054 |
child_set_env(&env, &envsize, "MAIL", buf); |
1054 |
snprintf(buf, sizeof buf, "%.200s/%.50s", |
|
|
1055 |
_PATH_MAILDIR, pw->pw_name); |
| 1056 |
child_set_env(&env, &envsize, "MAIL", buf); |
| 1057 |
} |
| 1055 |
|
1058 |
|
| 1056 |
/* Normal systems set SHELL by default. */ |
1059 |
/* Normal systems set SHELL by default. */ |
| 1057 |
child_set_env(&env, &envsize, "SHELL", shell); |
1060 |
child_set_env(&env, &envsize, "SHELL", shell); |