From nobody@FreeBSD.org  Wed Apr 17 15:59:22 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id B21A137B423
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Apr 2002 15:59:11 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3HMxBX02345;
	Wed, 17 Apr 2002 15:59:11 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204172259.g3HMxBX02345@freefall.freebsd.org>
Date: Wed, 17 Apr 2002 15:59:11 -0700 (PDT)
From: Jim Mercer <jim@reptiles.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /usr/local/sbin dropped from PATH in /etc/rc
X-Send-Pr-Version: www-1.0

>Number:         37201
>Category:       bin
>Synopsis:       /usr/local/sbin dropped from PATH in /etc/rc
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 17 16:00:06 PDT 2002
>Closed-Date:    Wed Apr 17 23:19:52 PDT 2002
>Last-Modified:  Wed Apr 17 23:50:05 PDT 2002
>Originator:     Jim Mercer
>Release:        4.5-STABLE circa 2002-04-17
>Organization:
Reptilian Research
>Environment:
FreeBSD cvsup.egate.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Apr 17 12:35:28 EDT 2002     root@cvsup.egate.net:/usr/obj/usr/src/sys/EGATE-CVS  i386

>Description:
      on/about 2002-04-15, /etc/rc was updated and the PATH was changed
so that it no longer includes /usr/local/sbin.

if this is a feature, please document it.

this change will effect many scripts in /usr/local/etc/rc.d which ran based on the PATH set in /etc/rc



>How-To-Repeat:
      look for a scipt in /usr/local/etc/rc.d which does not explicitly
specify a path, or update $PATH, reboot, and they will not found,
luckily evidenced with "dmesg -a"

>Fix:
      revert the PATH in /etc/rc to the previous, which was
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin

or, add a PATH= and export PATH statements to /etc/rc.conf

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Wed Apr 17 23:19:32 PDT 2002 
State-Changed-Why:  
For documentation, I just sent a "HEADS UP" to freebsd-stable@ on the 
change. (I made the change to -CURRENT, but someone else included it 
as part of a mega-MFC.) Since this was a misfeature and there was no 
place I am aware of that documented the old PATH, I can't think of any 
documentation to update. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37201 

From: Doug Barton <DougB@FreeBSD.org>
To: Jim Mercer <jim@reptiles.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/37201: /usr/local/sbin dropped from PATH in /etc/rc
Date: Wed, 17 Apr 2002 23:46:10 -0700 (PDT)

 On Wed, 17 Apr 2002, Jim Mercer wrote:
 
 > this change will effect many scripts in /usr/local/etc/rc.d which ran
 > based on the PATH set in /etc/rc
 
 	These scripts are broken, and should be fixed.
 
 
>Unformatted:
