From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 23 22:15:25 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 7DDBA1065672 for ; Wed, 23 Dec 2009 22:15:25 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id 47C2E8FC13 for ; Wed, 23 Dec 2009 22:15:25 +0000 (UTC) Received: from toad.stack.nl (toad.stack.nl [IPv6:2001:610:1108:5010::135]) by mx1.stack.nl (Postfix) with ESMTP id 5F4DB35A841 for ; Wed, 23 Dec 2009 23:15:24 +0100 (CET) Received: by toad.stack.nl (Postfix, from userid 1677) id 4989573F9F; Wed, 23 Dec 2009 23:15:24 +0100 (CET) Date: Wed, 23 Dec 2009 23:15:24 +0100 From: Jilles Tjoelker To: freebsd-hackers@freebsd.org Message-ID: <20091223221524.GA68650@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: 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: Wed, 23 Dec 2009 22:15:25 -0000 /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. -- Jilles Tjoelker