diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -83,6 +83,10 @@ static char *xauthfile; | |||
83 | /* data */ | 83 | /* data */ |
84 | #define MAX_SESSIONS 10 | 84 | #define MAX_SESSIONS 10 |
85 | Session sessions[MAX_SESSIONS]; | 85 | Session sessions[MAX_SESSIONS]; |
86 | #ifdef WITH_AIXAUTHENTICATE | ||
87 | /* AIX's lastlogin message, set in auth1.c */ | ||
88 | char *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. */ |
88 | int no_port_forwarding_flag = 0; | 92 | int 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 */ |