Date: Sun, 14 Jun 1998 10:48:09 -0500 (CDT) From: n@nectar.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: conf/6946: natd support in rc.network broken Message-ID: <199806141548.KAA26715@bone.nectar.com>
next in thread | raw e-mail | index | archive | help
>Number: 6946 >Category: conf >Synopsis: natd support in rc.network broken >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 14 08:50:00 PDT 1998 >Last-Modified: >Originator: Jacques Vidrine >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: 3.0-CURRENT since 1998/04/12 >Description: The rc.network script contains an invalid test (starts with ``-a'') that causes an error when natd is enabled in rc.conf, and fails to actually start natd. This error was introduced by revision 1.22. It appears that the original submitter's ``Fix'' was correct, but that the committer munged the ``Fix'' a bit in an effort to bring the line length down. >How-To-Repeat: Enable natd in rc.conf, and then boot into multiuser mode. Watch for the ``[: syntax error'' message, and note that natd didn't get run. >Fix: --- /usr/src/etc/rc.network Mon May 18 23:36:31 1998 +++ /tmp/rc.network Sun Jun 14 10:47:02 1998 @@ -269,10 +269,9 @@ fi # Network Address Translation daemon - if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" ]; then - if [ -a "X${firewall_enable}" = X"YES" ]; then - echo -n ' natd'; natd ${natd_flags} -n ${natd_interface} - fi + if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" \ + -a "X${firewall_enable}" = X"YES" ]; then + echo -n ' natd'; natd ${natd_flags} -n ${natd_interface} fi echo '.' >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806141548.KAA26715>