From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 24 13:00:26 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E05B106568B for ; Thu, 24 Dec 2009 13:00:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 70F8B8FC12 for ; Thu, 24 Dec 2009 13:00:26 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 192DB46B03; Thu, 24 Dec 2009 08:00:26 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 4BBDA8A01B; Thu, 24 Dec 2009 08:00:25 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 24 Dec 2009 07:50:48 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20091103; KDE/4.3.1; amd64; ; ) References: <20091223221524.GA68650@stack.nl> In-Reply-To: <20091223221524.GA68650@stack.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912240750.48103.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Thu, 24 Dec 2009 08:00:25 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Jilles Tjoelker Subject: Re: why does _PATH_STDPATH contain the current directory? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 13:00:26 -0000 On Wednesday 23 December 2009 5:15:24 pm Jilles Tjoelker wrote: > /usr/include/paths.h has: > /* All standard utilities path. */ > #define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:" > > The current directory appears to have been added accidentally years ago. > Can I go ahead and take it out (the colon)? > > The paths for rescue already do not have the current directory. > > The main use for _PATH_STDPATH is to find all standard utilities, such > as for the POSIX-specified confstr(_CS_PATH), 'getconf PATH' and > 'command -p'. Some utilities also use it instead of _PATH_DEFPATH for > root, but these values tend to be overridden by /etc/login.conf and/or > shell startup files. I vote to fix it. That's an old bug. :) -- John Baldwin