mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
48500b76a6
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.
28 lines
739 B
Plaintext
28 lines
739 B
Plaintext
*** sshconnect.c.orig Wed May 12 20:19:29 1999
|
|
--- sshconnect.c Sun Jun 6 02:39:02 1999
|
|
***************
|
|
*** 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));
|
|
+ #else
|
|
for (p = 1023; p > 512; p--)
|
|
{
|
|
sock = socket(AF_INET, SOCK_STREAM, 0);
|
|
***************
|
|
*** 374,379 ****
|
|
--- 380,386 ----
|
|
}
|
|
fatal("bind: %.100s", strerror(errno));
|
|
}
|
|
+ #endif
|
|
debug("Allocated local port %d.", p);
|
|
}
|
|
else
|