Date: Wed, 23 Dec 2009 23:15:24 +0100 From: Jilles Tjoelker <jilles@stack.nl> To: freebsd-hackers@freebsd.org Subject: why does _PATH_STDPATH contain the current directory? Message-ID: <20091223221524.GA68650@stack.nl>
next in thread | raw e-mail | index | archive | help
/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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091223221524.GA68650>