mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
25c2756dd9
regenerated them to fix the line numbers. Also, I added two commented out options in Makefile, one to tell sshd that a group writeable homedir is OK because all users are in their own group, and the other is to allow an unencrypted connection (which is dangerous since it can lead to compromise of keys), but on a secure network it's damn useful for backups etc.
28 lines
660 B
Plaintext
28 lines
660 B
Plaintext
*** sshconnect.c.orig Wed Apr 23 08:40:11 1997
|
|
--- sshconnect.c Fri Apr 25 12:41:59 1997
|
|
***************
|
|
*** 311,316 ****
|
|
--- 311,322 ----
|
|
{
|
|
struct sockaddr_in sin;
|
|
int p;
|
|
+ #if 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);
|
|
***************
|
|
*** 338,343 ****
|
|
--- 344,350 ----
|
|
}
|
|
fatal("bind: %.100s", strerror(errno));
|
|
}
|
|
+ #endif
|
|
debug("Allocated local port %d.", p);
|
|
}
|
|
else
|