From d2c208a2d37104c5c429659ac708d6288400ecd2 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 17 May 2000 22:00:02 +1000 Subject: - Applied Tom Bertelson's AIX authentication fix --- session.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'session.c') 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; /* data */ #define MAX_SESSIONS 10 Session sessions[MAX_SESSIONS]; +#ifdef WITH_AIXAUTHENTICATE +/* AIX's lastlogin message, set in auth1.c */ +char *aixloginmsg; +#endif /* WITH_AIXAUTHENTICATE */ /* Flags set in auth-rsa from authorized_keys flags. These are set in auth-rsa.c. */ int no_port_forwarding_flag = 0; @@ -631,6 +635,15 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw) fclose(f); } } +#if defined(WITH_AIXAUTHENTICATE) + /* + * AIX handles the lastlog info differently. Display it here. + */ + if (command == NULL && aixloginmsg && *aixloginmsg && + !quiet_login && !options.use_login) { + printf("%s\n", aixloginmsg); + } +#endif /* Do common processing for the child, such as execing the command. */ do_child(command, pw, s->term, s->display, s->auth_proto, s->auth_data, s->tty); /* NOTREACHED */ -- cgit v1.2.3