From owner-freebsd-bugs Mon Mar 11 3:30: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C352937B402 for ; Mon, 11 Mar 2002 03:30:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2BBU2n52803; Mon, 11 Mar 2002 03:30:02 -0800 (PST) (envelope-from gnats) Date: Mon, 11 Mar 2002 03:30:02 -0800 (PST) Message-Id: <200203111130.g2BBU2n52803@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: misc/35770: Why there is no /usr/local/bin in PATH variable in /etc/rc? Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/35770; it has been noted by GNATS. From: "Crist J. Clark" To: Ilshat Gubaidullin Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: misc/35770: Why there is no /usr/local/bin in PATH variable in /etc/rc? Date: Mon, 11 Mar 2002 03:20:22 -0800 On Mon, Mar 11, 2002 at 11:26:33AM +0100, Ilshat Gubaidullin wrote: [snip] > Why /usr/local/sbin is added and /usr/local/bin is not? You're right. /usr/local/sbin should not be there. It was added in revision 1.107 in 1996. The log indicates that it was added for "things like GateD." It looks like it was added to support some broken configuration options present in the rc-scripts at the time. It should be removed. For something like Samba, its rc script should contain the environment it needs to start properly. /etc/rc cannot not be expected to properly setup the environment for arbitrary third-party software. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message