diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | session.c | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20010321 | ||
2 | - (djm) Fix ttyname breakage for AIX and Tru64. Patch from Steve | ||
3 | VanDevender <stevev@darkwing.uoregon.edu> | ||
4 | |||
1 | 20010320 | 5 | 20010320 |
2 | - (bal) glob.c update to added GLOB_LIMITS (OpenBSD CVS). | 6 | - (bal) glob.c update to added GLOB_LIMITS (OpenBSD CVS). |
3 | - (bal) glob.c update to set gl_pathv to NULL (OpenBSD CVS). | 7 | - (bal) glob.c update to set gl_pathv to NULL (OpenBSD CVS). |
@@ -4645,4 +4649,4 @@ | |||
4645 | - Wrote replacements for strlcpy and mkdtemp | 4649 | - Wrote replacements for strlcpy and mkdtemp |
4646 | - Released 1.0pre1 | 4650 | - Released 1.0pre1 |
4647 | 4651 | ||
4648 | $Id: ChangeLog,v 1.993 2001/03/20 04:46:50 tim Exp $ | 4652 | $Id: ChangeLog,v 1.994 2001/03/21 00:11:57 djm Exp $ |
@@ -1053,7 +1053,7 @@ do_child(Session *s, const char *command) | |||
1053 | switch, so we let login(1) to this for us. */ | 1053 | switch, so we let login(1) to this for us. */ |
1054 | if (!options.use_login) { | 1054 | if (!options.use_login) { |
1055 | #ifdef HAVE_OSF_SIA | 1055 | #ifdef HAVE_OSF_SIA |
1056 | session_setup_sia(pw->pw_name, ttyname); | 1056 | session_setup_sia(pw->pw_name, s->tty); |
1057 | #else /* HAVE_OSF_SIA */ | 1057 | #else /* HAVE_OSF_SIA */ |
1058 | #ifdef HAVE_CYGWIN | 1058 | #ifdef HAVE_CYGWIN |
1059 | if (is_winnt) { | 1059 | if (is_winnt) { |
@@ -1134,10 +1134,10 @@ do_child(Session *s, const char *command) | |||
1134 | * other stuff is stored - a few applications | 1134 | * other stuff is stored - a few applications |
1135 | * actually use this and die if it's not set | 1135 | * actually use this and die if it's not set |
1136 | */ | 1136 | */ |
1137 | cp = xmalloc(22 + strlen(ttyname) + | 1137 | cp = xmalloc(22 + strlen(s->tty) + |
1138 | 2 * strlen(pw->pw_name)); | 1138 | 2 * strlen(pw->pw_name)); |
1139 | i = sprintf(cp, "LOGNAME=%s%cNAME=%s%cTTY=%s%c%c", | 1139 | i = sprintf(cp, "LOGNAME=%s%cNAME=%s%cTTY=%s%c%c", |
1140 | pw->pw_name, 0, pw->pw_name, 0, ttyname, 0,0); | 1140 | pw->pw_name, 0, pw->pw_name, 0, s->tty, 0,0); |
1141 | if (usrinfo(SETUINFO, cp, i) == -1) | 1141 | if (usrinfo(SETUINFO, cp, i) == -1) |
1142 | fatal("Couldn't set usrinfo: %s", | 1142 | fatal("Couldn't set usrinfo: %s", |
1143 | strerror(errno)); | 1143 | strerror(errno)); |