summaryrefslogtreecommitdiff
path: root/security/hpn-ssh/files/patch-session.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2004-08-18 11:35:53 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2004-08-18 11:35:53 +0000
commit7fbc51cf8f84b316fd2fb689bba9afa4bd31a448 (patch)
tree6ecfba3259f0d4f327b52e20519328f7d9bc7e0f /security/hpn-ssh/files/patch-session.c
parentamd64 dislikes -malign-double (diff)
- 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
Notes
Notes: svn path=/head/; revision=116585
Diffstat (limited to '')
-rw-r--r--security/hpn-ssh/files/patch-session.c19
1 files changed, 0 insertions, 19 deletions
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 */