summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-05-17 22:00:02 +1000
committerDamien Miller <djm@mindrot.org>2000-05-17 22:00:02 +1000
commitd2c208a2d37104c5c429659ac708d6288400ecd2 (patch)
tree595741836a9444811c123b6555c1d47f5def2a95 /session.c
parent8d1fd57a971159c828ab778136ca6332f0ba8f34 (diff)
- Applied Tom Bertelson's <tbert@abac.com> AIX authentication fix
Diffstat (limited to 'session.c')
-rw-r--r--session.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/session.c b/session.c
index c490f087e..480a1635a 100644
--- a/session.c
+++ b/session.c
@@ -83,6 +83,10 @@ static char *xauthfile;
83/* data */ 83/* data */
84#define MAX_SESSIONS 10 84#define MAX_SESSIONS 10
85Session sessions[MAX_SESSIONS]; 85Session sessions[MAX_SESSIONS];
86#ifdef WITH_AIXAUTHENTICATE
87/* AIX's lastlogin message, set in auth1.c */
88char *aixloginmsg;
89#endif /* WITH_AIXAUTHENTICATE */
86 90
87/* Flags set in auth-rsa from authorized_keys flags. These are set in auth-rsa.c. */ 91/* Flags set in auth-rsa from authorized_keys flags. These are set in auth-rsa.c. */
88int no_port_forwarding_flag = 0; 92int no_port_forwarding_flag = 0;
@@ -631,6 +635,15 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw)
631 fclose(f); 635 fclose(f);
632 } 636 }
633 } 637 }
638#if defined(WITH_AIXAUTHENTICATE)
639 /*
640 * AIX handles the lastlog info differently. Display it here.
641 */
642 if (command == NULL && aixloginmsg && *aixloginmsg &&
643 !quiet_login && !options.use_login) {
644 printf("%s\n", aixloginmsg);
645 }
646#endif
634 /* Do common processing for the child, such as execing the command. */ 647 /* Do common processing for the child, such as execing the command. */
635 do_child(command, pw, s->term, s->display, s->auth_proto, s->auth_data, s->tty); 648 do_child(command, pw, s->term, s->display, s->auth_proto, s->auth_data, s->tty);
636 /* NOTREACHED */ 649 /* NOTREACHED */