aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-08-12 14:17:53 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-08-12 14:17:53 +0000
commit4f8ec254e49070bb499190053dc2d94d989b83f6 (patch)
treecfe698f833367e15e61927c8a0242a8ff90932c7 /security
parent9946c2f6156d872c5c237c1a4000b442b304f6e4 (diff)
downloadports-4f8ec254e49070bb499190053dc2d94d989b83f6.tar.gz
ports-4f8ec254e49070bb499190053dc2d94d989b83f6.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/ssh/files/patch-al26
-rw-r--r--security/ssh2/files/patch-al26
2 files changed, 52 insertions, 0 deletions
diff --git a/security/ssh/files/patch-al b/security/ssh/files/patch-al
new file mode 100644
index 000000000000..4add2482628b
--- /dev/null
+++ b/security/ssh/files/patch-al
@@ -0,0 +1,26 @@
+*** sshconnect.c.dist Thu Jun 6 21:47:06 1996
+--- sshconnect.c Mon Aug 12 13:26:46 1996
+***************
+*** 235,240 ****
+--- 235,245 ----
+ {
+ struct sockaddr_in sin;
+ int p;
++ #if defined(__FreeBSD__) && !defined(SOCKS)
++ 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);
+***************
+*** 262,267 ****
+--- 267,273 ----
+ }
+ fatal("bind: %.100s", strerror(errno));
+ }
++ #endif
+ debug("Allocated local port %d.", p);
+ }
+ else
diff --git a/security/ssh2/files/patch-al b/security/ssh2/files/patch-al
new file mode 100644
index 000000000000..4add2482628b
--- /dev/null
+++ b/security/ssh2/files/patch-al
@@ -0,0 +1,26 @@
+*** sshconnect.c.dist Thu Jun 6 21:47:06 1996
+--- sshconnect.c Mon Aug 12 13:26:46 1996
+***************
+*** 235,240 ****
+--- 235,245 ----
+ {
+ struct sockaddr_in sin;
+ int p;
++ #if defined(__FreeBSD__) && !defined(SOCKS)
++ 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);
+***************
+*** 262,267 ****
+--- 267,273 ----
+ }
+ fatal("bind: %.100s", strerror(errno));
+ }
++ #endif
+ debug("Allocated local port %d.", p);
+ }
+ else