Bug 37201

Summary: /usr/local/sbin dropped from PATH in /etc/rc
Product: Base System Reporter: jim <jim>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-STABLE   
Hardware: Any   
OS: Any   

Description jim 2002-04-18 00:00:06 UTC
      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

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
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"
Comment 1 Crist J. Clark freebsd_committer freebsd_triage 2002-04-18 07:19:32 UTC
State Changed
From-To: open->closed

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.
Comment 2 Doug Barton freebsd_committer freebsd_triage 2002-04-18 07:46:10 UTC
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.