]> andersk Git - openssh.git/commitdiff
- (djm) Bug #446: Set LOGIN env var to pw_name on AIX. Patch from
authordjm <djm>
Fri, 3 Jan 2003 03:52:53 +0000 (03:52 +0000)
committerdjm <djm>
Fri, 3 Jan 2003 03:52:53 +0000 (03:52 +0000)
   mii@ornl.gov

ChangeLog
session.c

index dc8721b1dc4eac7e3dc8ab08d646c5dd1b95bbe6..e89a8105d240d80536e2f0921f2b3e43650ae5be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,9 @@
    cjwatson@debian.org
  - (djm) Bug #460: Filling utmp[x]->ut_addr_v6 if present. Patch from 
    cjwatson@debian.org
-   
+ - (djm) Bug #446: Set LOGIN env var to pw_name on AIX. Patch from 
+   mii@ornl.gov 
+
 20030101
   - (stevesk) [session.c sshlogin.c sshlogin.h] complete portable
     parts of pass addrlen with sockaddr * fix.
index 90d59513ca9294f5e158a1a22572a93bdd3011f3..9832d7a834c5410b7e90e5a09642bd2b3ebfafcb 100644 (file)
--- 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)
This page took 0.04723 seconds and 5 git commands to generate.