aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-12-25 02:48:46 +0800
committerimp <imp@FreeBSD.org>1997-12-25 02:48:46 +0800
commit588e72f278e5dcd39608fbe8ab4af665530acd35 (patch)
tree7ce9660070ffa497750c4ba5428235e8e2435a64 /security
parent7fb4e394d958ea8ac1515fcebafc62e16b5841e5 (diff)
downloadfreebsd-ports-gnome-588e72f278e5dcd39608fbe8ab4af665530acd35.tar.gz
freebsd-ports-gnome-588e72f278e5dcd39608fbe8ab4af665530acd35.tar.zst
freebsd-ports-gnome-588e72f278e5dcd39608fbe8ab4af665530acd35.zip
Merge in change requested by theo:
OpenBSD and FreeBSD now both use rresvport. This is a nop for FreeBSD, but for OpenBSD this picks random port numbers. Submitted by: deraadt@cvs.openbsd.org
Diffstat (limited to 'security')
-rw-r--r--security/ssh/files/patch-al2
-rw-r--r--security/ssh2/files/patch-al2
2 files changed, 2 insertions, 2 deletions
diff --git a/security/ssh/files/patch-al b/security/ssh/files/patch-al
index 1da799c26ac5..9339ab05185c 100644
--- a/security/ssh/files/patch-al
+++ b/security/ssh/files/patch-al
@@ -6,7 +6,7 @@
{
struct sockaddr_in sin;
int p;
-+ #if defined(__FreeBSD__) && !defined(SOCKS)
++ #if (defined(__OpenBSD__) || defined(__FreeBSD__)) && !defined(SOCKS)
+ p = 1023; /* Compat with old FreeBSD */
+ sock = rresvport(&p);
+ if (sock < 0)
diff --git a/security/ssh2/files/patch-al b/security/ssh2/files/patch-al
index 1da799c26ac5..9339ab05185c 100644
--- a/security/ssh2/files/patch-al
+++ b/security/ssh2/files/patch-al
@@ -6,7 +6,7 @@
{
struct sockaddr_in sin;
int p;
-+ #if defined(__FreeBSD__) && !defined(SOCKS)
++ #if (defined(__OpenBSD__) || defined(__FreeBSD__)) && !defined(SOCKS)
+ p = 1023; /* Compat with old FreeBSD */
+ sock = rresvport(&p);
+ if (sock < 0)