From nobody@FreeBSD.org  Fri Nov 18 09:29:36 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 194E2106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 09:29:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 08EFA8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 09:29:36 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pAI9TZGT075052
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 09:29:35 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pAI9TZ5Y075051;
	Fri, 18 Nov 2011 09:29:35 GMT
	(envelope-from nobody)
Message-Id: <201111180929.pAI9TZ5Y075051@red.freebsd.org>
Date: Fri, 18 Nov 2011 09:29:35 GMT
From: Robert Schulze <rs@bytecamp.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.d/named should always pass $named_conf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162652
>Category:       conf
>Synopsis:       /etc/rc.d/named should always pass $named_conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 18 09:30:11 UTC 2011
>Closed-Date:    Fri Nov 18 19:14:15 UTC 2011
>Last-Modified:  Fri Nov 18 19:14:15 UTC 2011
>Originator:     Robert Schulze
>Release:        8.2-STABLE
>Organization:
>Environment:
FreeBSD xxxx 8.2-STABLE FreeBSD 8.2-STABLE #14: Wed Aug 17 16:38:22 CEST 2011 amd64
>Description:
In /etc/rc.d/named, the argument -c is only passed via rc.conf's parameter
"named_conf", when it differs from the default location:

if [ ! "$named_conf" = '/etc/namedb/named.conf' ]; then
                case "$named_flags" in
                -c*|*' -c'*) ;;         # No need to add it
                *) command_args="-c $named_conf $command_args" ;;
                esac
        fi

It would be better to always pass "-c $named_conf" when $named_conf is
nonempty, this makes it easier to use bind from the ports (not replacing
the system bind) without the need to set
named_flags="-c /etc/namedb/named.conf" explicitly.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Nov 18 17:42:52 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162652 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Fri Nov 18 19:13:31 UTC 2011 
State-Changed-Why:  

It's not necessary from the ports either. Just let the port create the 
proper symlinks and everything works just fine.  


Responsible-Changed-From-To: freebsd-rc->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Fri Nov 18 19:13:31 UTC 2011 
Responsible-Changed-Why:  

My area. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162652 
>Unformatted:
