diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -969,6 +969,9 @@ do_setup_env(Session *s, const char *shell) | |||
969 | /* Set basic environment. */ | 969 | /* Set basic environment. */ |
970 | child_set_env(&env, &envsize, "USER", pw->pw_name); | 970 | child_set_env(&env, &envsize, "USER", pw->pw_name); |
971 | child_set_env(&env, &envsize, "LOGNAME", pw->pw_name); | 971 | child_set_env(&env, &envsize, "LOGNAME", pw->pw_name); |
972 | #ifdef _AIX | ||
973 | child_set_env(&env, &envsize, "LOGIN", pw->pw_name); | ||
974 | #endif | ||
972 | child_set_env(&env, &envsize, "HOME", pw->pw_dir); | 975 | child_set_env(&env, &envsize, "HOME", pw->pw_dir); |
973 | #ifdef HAVE_LOGIN_CAP | 976 | #ifdef HAVE_LOGIN_CAP |
974 | if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0) | 977 | if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0) |