Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 1999 08:29:39 +0300 (EEST)
From:      martti.kuparinen@ericsson.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/11377: [PATCH] /etc/rc.firewall ignores user settings
Message-ID:  <199904290529.IAA00829@ws125.research.zopps.fi>

next in thread | raw e-mail | index | archive | help

>Number:         11377
>Category:       conf
>Synopsis:       /etc/rc.firewall ignores user settings defined in /etc/rc.conf
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 28 22:40:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Martti Kuparinen
>Release:        FreeBSD 3.1-STABLE i386
>Organization:
Oy L M Ericsson Ab
>Environment:

FreeBSD bastion 3.1-STABLE FreeBSD 3.1-STABLE #8: Wed Apr 28 07:36:23 EEST 1999     root@bastion:/usr/src/sys/compile/BASTION  i386

>Description:

The current version of /etc/rc.firewall ignores user's settings
defined in /etc/rc.conf as the first if-statement is always true.
I think this must be fixed before 3.2-RELEASE...

>How-To-Repeat:


>Fix:
	
Apply the following patch:

*** rc.firewall.orig	Thu Apr 29 08:21:05 1999
--- rc.firewall	Thu Apr 29 08:21:27 1999
***************
*** 5,11 ****
  # Suck in the configuration variables.
  if [ -f /etc/defaults/rc.conf ]; then
  	. /etc/defaults/rc.conf
! elif [ -f /etc/rc.conf ]; then
  	. /etc/rc.conf
  fi
  
--- 5,12 ----
  # Suck in the configuration variables.
  if [ -f /etc/defaults/rc.conf ]; then
  	. /etc/defaults/rc.conf
! fi
! if [ -f /etc/rc.conf ]; then
  	. /etc/rc.conf
  fi

>Release-Note:
>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?199904290529.IAA00829>