summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-01-03 14:52:53 +1100
committerDamien Miller <djm@mindrot.org>2003-01-03 14:52:53 +1100
commitdfedbf8e5a1f6719a9e91f79900d8cc0d055c453 (patch)
treec118120a5aca050291c2a568d9d8e196819127d8 /session.c
parent02e16ad95fb1f56ab004b01a10aab89f7103c55d (diff)
- (djm) Bug #446: Set LOGIN env var to pw_name on AIX. Patch from
mii@ornl.gov
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 90d59513..9832d7a8 100644
--- a/session.c
+++ b/session.c
@@ -969,6 +969,9 @@ do_setup_env(Session *s, const char *shell)
/* Set basic environment. */
child_set_env(&env, &envsize, "USER", pw->pw_name);
child_set_env(&env, &envsize, "LOGNAME", pw->pw_name);
+#ifdef _AIX
+ child_set_env(&env, &envsize, "LOGIN", pw->pw_name);
+#endif
child_set_env(&env, &envsize, "HOME", pw->pw_dir);
#ifdef HAVE_LOGIN_CAP
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0)