diff options
author | Damien Miller <djm@mindrot.org> | 2003-01-03 14:52:53 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-01-03 14:52:53 +1100 |
commit | dfedbf8e5a1f6719a9e91f79900d8cc0d055c453 (patch) | |
tree | c118120a5aca050291c2a568d9d8e196819127d8 /session.c | |
parent | 02e16ad95fb1f56ab004b01a10aab89f7103c55d (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.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) |