summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-06-23 12:06:35 +0000
committermtm <mtm@FreeBSD.org>2008-06-23 12:06:35 +0000
commit46fbea2f90b79faab8492caaac31e2f632911215 (patch)
treeb88b05dfa81af136970cdf8002141288d5e228f4
parent6fc79f1dacf676008042f647315769e5e8edbcfa (diff)
downloadFreeBSD-src-46fbea2f90b79faab8492caaac31e2f632911215.zip
FreeBSD-src-46fbea2f90b79faab8492caaac31e2f632911215.tar.gz
Set the sysctl(8) value in the same shell, not a subshell. This was
causing calls to netoptions_init() to not properly set a global variable, which ended up being in the parent shell.
-rw-r--r--etc/rc.d/netoptions4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index 51d5f79..7b02c50 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -36,12 +36,12 @@ case ${log_in_vain} in
;;
esac
-[ "${log_in_vain}" -ne 0 ] && (
+if [ "${log_in_vain}" -ne 0 ]; then
netoptions_init
echo -n " log_in_vain=${log_in_vain}"
sysctl net.inet.tcp.log_in_vain="${log_in_vain}" >/dev/null
sysctl net.inet.udp.log_in_vain="${log_in_vain}" >/dev/null
-)
+fi
case ${tcp_extensions} in
[Yy][Ee][Ss] | '')
OpenPOWER on IntegriCloud