summaryrefslogtreecommitdiff
path: root/security/ssh/patches/patch-av
diff options
context:
space:
mode:
authorkim <kim>1998-09-10 16:36:11 +0000
committerkim <kim>1998-09-10 16:36:11 +0000
commit404372aa128a9d876a0340fd7b06155a51dcf22a (patch)
tree23890eb5a83605387bdd394d7c1a178295c13c5e /security/ssh/patches/patch-av
parent697964b070d5e177ed0ed76c095184a2878ceaa1 (diff)
downloadpkgsrc-404372aa128a9d876a0340fd7b06155a51dcf22a.tar.gz
Don't write truncated hostnames in utmp, use IP addresses instead.
Don't immediately timeout sessions as idle just because an actual idle check had not been done yet (so last_idle_time was zero, and the difference to current time is way over your idle time limit). Also added the first US mirror of ssh into MASTER_SITES.
Diffstat (limited to 'security/ssh/patches/patch-av')
-rw-r--r--security/ssh/patches/patch-av13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/ssh/patches/patch-av b/security/ssh/patches/patch-av
new file mode 100644
index 00000000000..c193637255a
--- /dev/null
+++ b/security/ssh/patches/patch-av
@@ -0,0 +1,13 @@
+$NetBSD: patch-av,v 1.1 1998/09/10 16:36:12 kim Exp $
+
+--- serverloop.c.orig Wed Jul 8 12:40:38 1998
++++ serverloop.c Thu Sep 10 12:13:33 1998
+@@ -441,7 +441,7 @@
+ if (ret == 0) /* Nothing read, timeout expired */
+ {
+ /* Check if idle_timeout expired ? */
+- if (idle_timeout != 0 && !child_terminated &&
++ if (idle_timeout != 0 && !child_terminated && idle_time_last &&
+ time(NULL) - idle_time_last > idle_timeout)
+ {
+ /* Yes, kill the child */