diff options
author | mtm <mtm@FreeBSD.org> | 2008-06-23 12:06:35 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-06-23 12:06:35 +0000 |
commit | 46fbea2f90b79faab8492caaac31e2f632911215 (patch) | |
tree | b88b05dfa81af136970cdf8002141288d5e228f4 | |
parent | 6fc79f1dacf676008042f647315769e5e8edbcfa (diff) | |
download | FreeBSD-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/netoptions | 4 |
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] | '') |