aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/openvpn-devel/files/patch-tests-for-jail2
-rw-r--r--security/openvpn/files/patch-tests-for-jail2
-rw-r--r--security/openvpn20/files/patch-tests-for-jail2
3 files changed, 3 insertions, 3 deletions
diff --git a/security/openvpn-devel/files/patch-tests-for-jail b/security/openvpn-devel/files/patch-tests-for-jail
index c7a2c0d203cb..6a0e72746ab6 100644
--- a/security/openvpn-devel/files/patch-tests-for-jail
+++ b/security/openvpn-devel/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 "###"
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 "###"
diff --git a/security/openvpn20/files/patch-tests-for-jail b/security/openvpn20/files/patch-tests-for-jail
index c7a2c0d203cb..6a0e72746ab6 100644
--- a/security/openvpn20/files/patch-tests-for-jail
+++ b/security/openvpn20/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 "###"