Define all paths in pathnames.h
Approved by: joerg, sheldonh (mentor)
This commit is contained in:
parent
e277218592
commit
103d66460c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100691
@ -25,6 +25,10 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
/* Where to look for libexec and games */
|
||||
#define PATH_LIBEXEC "/usr/libexec"
|
||||
#define PATH_GAMES "/usr/games"
|
||||
|
||||
/* Where to look for sources. */
|
||||
#define PATH_SOURCES \
|
||||
"/usr/src/bin:/usr/src/usr.bin:/usr/src/sbin:" \
|
||||
|
@ -274,8 +274,8 @@ defaults(void)
|
||||
bindirs = realloc(bindirs, (nele + 3) * sizeof(char *));
|
||||
if (bindirs == NULL)
|
||||
abort();
|
||||
bindirs[nele++] = "/usr/libexec";
|
||||
bindirs[nele++] = "/usr/games";
|
||||
bindirs[nele++] = PATH_LIBEXEC;
|
||||
bindirs[nele++] = PATH_GAMES;
|
||||
bindirs[nele] = NULL;
|
||||
if ((cp = getenv("PATH")) != NULL) {
|
||||
/* don't destroy the original environment... */
|
||||
|
Loading…
Reference in New Issue
Block a user