aboutsummaryrefslogtreecommitdiff
path: root/security/openvpn
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2006-02-28 16:25:43 +0000
committerVasil Dimov <vd@FreeBSD.org>2006-02-28 16:25:43 +0000
commit00f85e891fdeef16976fae137a8645e2e9033c9d (patch)
treee55aadfb595e4fd99885d699cee8268e9e334bff /security/openvpn
parent39b50f192f9fe9efb771e2e6ba3d4d7fcb946031 (diff)
downloadports-00f85e891fdeef16976fae137a8645e2e9033c9d.tar.gz
ports-00f85e891fdeef16976fae137a8645e2e9033c9d.zip
Notes
Diffstat (limited to 'security/openvpn')
-rw-r--r--security/openvpn/files/patch-tests-for-jail2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/openvpn/files/patch-tests-for-jail b/security/openvpn/files/patch-tests-for-jail
index c7a2c0d203cb..6a0e72746ab6 100644
--- a/security/openvpn/files/patch-tests-for-jail
+++ b/security/openvpn/files/patch-tests-for-jail
@@ -30,7 +30,7 @@
+ # FreeBSD jails map the outgoing IP to the jail IP - we need to
+ # allow the real IP unless we want the test to run forever.
+ if test "`sysctl 2>/dev/null -n security.jail.jailed`" = 1 \
-+ || `ps -ostate $$ | tail -n1 | grep >/dev/null J` ; then
++ || ps -ostate= -p $$ | grep -q J; then
+ addopts="--float"
+ if test "x`ifconfig | grep inet`" = x ; then
+ echo "###"