Unix Technical Forum

Patch: adding /usr/local/sbin to paths

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:10 AM
Gregory Hinton
 
Posts: n/a
Default Patch: adding /usr/local/sbin to paths

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"

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:22 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com