From 7fbc51cf8f84b316fd2fb689bba9afa4bd31a448 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Wed, 18 Aug 2004 11:35:53 +0000 Subject: - update to 3.9p1 set PORTVERSION 3.9.0.1 to avoid another bump of PORTEPOCH if 3.9.1p1 come out. - new option OPENSSH_SNAPSHOT --- security/hpn-ssh/files/patch-session.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'security/hpn-ssh/files/patch-session.c') diff --git a/security/hpn-ssh/files/patch-session.c b/security/hpn-ssh/files/patch-session.c index 1f038e37cebe..61c1b45791b0 100644 --- a/security/hpn-ssh/files/patch-session.c +++ b/security/hpn-ssh/files/patch-session.c @@ -143,25 +143,6 @@ if (check_quietlogin(s, command)) return; -@@ -726,7 +827,17 @@ - buffer_free(&loginmsg); - - #ifndef NO_SSH_LASTLOG -- if (options.print_lastlog && s->last_login_time != 0) { -+ /* -+ * If the user has logged in before, display the time of last -+ * login. However, don't display anything extra if a command -+ * has been specified (so that ssh can be used to execute -+ * commands on a remote machine without users knowing they -+ * are going to another machine). Login(1) will do this for -+ * us as well, so check if login(1) is used -+ */ -+ if (command == NULL && options.print_lastlog && -+ s->last_login_time != 0 && -+ !options.use_login) { - time_string = ctime(&s->last_login_time); - if (strchr(time_string, '\n')) - *strchr(time_string, '\n') = 0; @@ -738,7 +849,30 @@ } #endif /* NO_SSH_LASTLOG */ -- cgit v1.2.3