summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2007-04-02 15:38:53 +0000
committermtm <mtm@FreeBSD.org>2007-04-02 15:38:53 +0000
commitc8bd325d08025c25cacb77438cae0cff65aa5e8c (patch)
tree04f91f65a46cd3c63390f845d7f234c0846d54f4 /etc/rc.d
parent1d339d1f1e93f893f07fa9f833cae0f232b0519b (diff)
downloadFreeBSD-src-c8bd325d08025c25cacb77438cae0cff65aa5e8c.zip
FreeBSD-src-c8bd325d08025c25cacb77438cae0cff65aa5e8c.tar.gz
Instead of directly sourcing the firewall script, run it in a separate shell.
If the firewall script is sourced directly from the script, then any exit statements in it will also terminate the rc.d script prematurely. PR: conf/78762 MFC-After: 2 weeks
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/ip6fw2
-rw-r--r--etc/rc.d/ipfw2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/ip6fw b/etc/rc.d/ip6fw
index b96daec..131d7a0 100644
--- a/etc/rc.d/ip6fw
+++ b/etc/rc.d/ip6fw
@@ -26,7 +26,7 @@ ip6fw_start()
# Load rules
#
if [ -r "${ipv6_firewall_script}" ]; then
- . "${ipv6_firewall_script}"
+ /bin/sh "${ipv6_firewall_script}"
echo 'IPv6 Firewall rules loaded.'
elif [ "`ipfw show 65535`" = "65535 deny ip from any to any" ]; then
warn 'IPv6 firewall rules have not been loaded. Default' \
diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw
index 849a62c..920eb28 100644
--- a/etc/rc.d/ipfw
+++ b/etc/rc.d/ipfw
@@ -26,7 +26,7 @@ ipfw_start()
if [ -f /etc/rc.d/natd ] ; then
/etc/rc.d/natd start
fi
- . "${firewall_script}"
+ /bin/sh "${firewall_script}"
echo 'Firewall rules loaded.'
elif [ "`ipfw list 65535`" = "65535 deny ip from any to any" ]; then
echo 'Warning: kernel has firewall functionality, but' \
OpenPOWER on IntegriCloud