This is a discussion on Patch: adding /usr/local/sbin to paths within the mailing.openbsd.tech forums, part of the OpenBSD category; --> The following patch fixes the problem of whereis(1) not finding executables which have been installed in /usr/local/sbin. (Sorry if ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| The following patch fixes the problem of whereis(1) not finding executables which have been installed in /usr/local/sbin. (Sorry if my mailer wraps the long #define lines) Regards... GH Index: paths.h ================================================== ================= RCS file: /cvs/src/include/paths.h,v retrieving revision 1.22 diff -u -r1.22 paths.h --- paths.h 2 Apr 2005 17:04:52 -0000 1.22 +++ paths.h 3 Feb 2007 10:59:53 -0000 @@ -36,9 +36,9 @@ #define _PATHS_H_ /* Default search path. */ -#define _PATH_DEFPATH "/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin" +#define _PATH_DEFPATH "/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin" /* All standard utilities path. */ -#define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin" +#define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin" #define _PATH_BSHELL "/bin/sh" #define _PATH_CONSOLE "/dev/console" |