Bug 446 - $LOGIN not set by openssh under AIX
Summary: $LOGIN not set by openssh under AIX
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: All AIX
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-27 06:49 AEDT by Don Maxwell
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don Maxwell 2002-11-27 06:49:06 AEDT
I'd like to submit a request to get the following patch incorporated
into openssh.  AIX generates an environment variable called $LOGIN
when using telnet/rsh.  This appears to be generated by /bin/login.
However, turning on UseLogin disables X11Forwarding, so that doesn't
help us much.  Some scripts (most notably netscape at the present)
reference $LOGIN, so if users ssh into our machines, the script will
blow up.  This seems like a reasonable thing to do since the AIX
native remote login facilities set this variable.  The AIXtoolbox
group which maintains the AIX version of openssh for IBM is
incorporating this patch into their version.

What are the chances of getting this incorporated into the openssh
distribution?

*** session.c.3.5p1     Wed Sep 25 20:38:50 2002
--- session.c   Mon Nov 25 12:28:41 2002
***************
*** 969,974 ****
--- 969,977 ----
                /* 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)
Comment 1 Damien Miller 2003-01-03 14:53:08 AEDT
Applied - thanks
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED