summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/session.c b/session.c
index 90d59513c..9832d7a83 100644
--- a/session.c
+++ b/session.c
@@ -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)