diff options
author | SADA Kenji <sada@FreeBSD.org> | 1999-06-15 20:14:04 +0000 |
---|---|---|
committer | SADA Kenji <sada@FreeBSD.org> | 1999-06-15 20:14:04 +0000 |
commit | 48500b76a665eb0b09417624157a9adeaf7f11fa (patch) | |
tree | d442b2dc65a22d0c5f486d6441cc7d6eab96d47d /security/ssh/files/patch-al | |
parent | Portlint. (diff) |
PR: ports/12037
Submitted by: Issei Suzuki <issei@jp.FreeBSD.ORG>
Upgrade to 1.2.27.
# I'm not maintainer but it seems that torstenb is too busy to
# look the PR and many people want new version ssh port.
Notes
Notes:
svn path=/head/; revision=19489
Diffstat (limited to 'security/ssh/files/patch-al')
-rw-r--r-- | security/ssh/files/patch-al | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/security/ssh/files/patch-al b/security/ssh/files/patch-al index 9339ab05185c..839d1fe2b2bf 100644 --- a/security/ssh/files/patch-al +++ b/security/ssh/files/patch-al @@ -1,26 +1,26 @@ -*** sshconnect.c.orig Wed Apr 23 08:40:11 1997 ---- sshconnect.c Fri Apr 25 12:41:59 1997 +*** sshconnect.c.orig Wed May 12 20:19:29 1999 +--- sshconnect.c Sun Jun 6 02:39:02 1999 *************** -*** 311,316 **** ---- 311,322 ---- +*** 347,352 **** +--- 347,358 ---- { struct sockaddr_in sin; int p; + #if (defined(__OpenBSD__) || defined(__FreeBSD__)) && !defined(SOCKS) -+ p = 1023; /* Compat with old FreeBSD */ -+ sock = rresvport(&p); -+ if (sock < 0) -+ fatal("rresvport: %.100s", strerror(errno)); ++ p = 1023; /* Compat with old FreeBSD */ ++ sock = rresvport(&p); ++ if (sock < 0) ++ fatal("rresvport: %.100s", strerror(errno)); + #else for (p = 1023; p > 512; p--) - { - sock = socket(AF_INET, SOCK_STREAM, 0); + { + sock = socket(AF_INET, SOCK_STREAM, 0); *************** -*** 338,343 **** ---- 344,350 ---- - } - fatal("bind: %.100s", strerror(errno)); - } +*** 374,379 **** +--- 380,386 ---- + } + fatal("bind: %.100s", strerror(errno)); + } + #endif debug("Allocated local port %d.", p); } |