From 46fbea2f90b79faab8492caaac31e2f632911215 Mon Sep 17 00:00:00 2001 From: mtm Date: Mon, 23 Jun 2008 12:06:35 +0000 Subject: 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. --- etc/rc.d/netoptions | 4 ++-- 1 file 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] | '') -- cgit v1.1