[mw-devel] MW3 r942 - trunk/src

pwb at sucs.org pwb at sucs.org
Fri Mar 23 22:37:38 GMT 2007


Author: pwb
Date: 2007-03-23 22:37:38 +0000 (Fri, 23 Mar 2007)
New Revision: 942

Modified:
   trunk/src/bb.h
Log:
fix hardcoded path /usr/lib/mw to use HOMEPATH instead


Modified: trunk/src/bb.h
===================================================================
--- trunk/src/bb.h	2007-03-23 20:40:21 UTC (rev 941)
+++ trunk/src/bb.h	2007-03-23 22:37:38 UTC (rev 942)
@@ -8,16 +8,17 @@
 /* portable integer types */
 #include <stdint.h>
 
+#ifndef HOMEPATH
+#define HOMEPATH	"/usr/local/lib/mw"
+#endif
+
 #define LOGFILE		"log.bb"
 #define LOGIN_BANNER	"login.banner"
 #define DEVEL_BANNER	"login.banner.devel"
 #define LOCKFILE	"/tmp/bb.locked"
 #define EDITOR		"/usr/bin/vim"
-#define SECUREEDITOR	"/usr/lib/mw/red"
+#define SECUREEDITOR	HOMEPATH"/red"
 
-#ifndef HOMEPATH
-#define HOMEPATH	"/usr/local/lib/mw"
-#endif
 #define ROOMPATH	"rooms"
 
 #define HELPDIR		"help"





More information about the mw-devel mailing list