bin/141642: *_program override in /etc/rc.conf stopped working
Petr Lampa
lampa at fit.vutbr.cz
Tue Dec 15 07:20:11 PST 2009
>Number: 141642
>Category: bin
>Synopsis: *_program override in /etc/rc.conf stopped working
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 15 15:20:10 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Petr Lampa
>Release: 8.0-STABLE
>Organization:
BUT FIT
>Environment:
FreeBSD host 8.0-STABLE FreeBSD 8.0-STABLE #0: Tue Dec 15 15:06:04 CET 2009 i386
>Description:
Program file override in /etc/rc.conf stopped working in 8.0-STABLE due to this change in /etc/rc.subr:
original (7.2):
eval _override_command=\$${name}_program
command=${_override_command:-$command}
current (8.0):
eval _override_command=\$${name}_program
command=${command:-${_override_command}}
output from sh -x:
+ _rc_prefix=''
+ eval '_override_command=$named_program'
+ _override_command=/usr/local/sbin/named
+ command=/usr/sbin/named
+ _keywords='start stop restart rcvar reload'
/etc/rc.subr version:
# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $
# $FreeBSD: src/etc/rc.subr,v 1.88.2.6 2009/12/07 06:25:19 hrs Exp $
>How-To-Repeat:
set in /etc/rc.conf:
named_program="/usr/local/sbin/named"
/usr/sbin/named will be run!
>Fix:
backout the change (what was the reason?)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list