4ae869d157
- Add createmodule.sh utility script for creating modulefiles Mon Nov 30 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-6 - Add Requires: propcs (bug #54272)
24 lines
866 B
Diff
24 lines
866 B
Diff
diff -up modules-3.2.7/cmdPath.c.manpath modules-3.2.7/cmdPath.c
|
|
--- modules-3.2.7/cmdPath.c.manpath 2009-07-30 12:03:20.000000000 -0600
|
|
+++ modules-3.2.7/cmdPath.c 2010-01-07 15:32:49.175198225 -0700
|
|
@@ -58,6 +58,10 @@ static void *UseId[] = { &UseId, Id };
|
|
#define PATH_BUFLEN 1024
|
|
#endif
|
|
|
|
+#ifndef MANPATH
|
|
+#define MANPATH "/usr/share/man"
|
|
+#endif
|
|
+
|
|
/** ************************************************************************ **/
|
|
/** MACROS **/
|
|
/** ************************************************************************ **/
|
|
@@ -215,7 +219,7 @@ int cmdSetPath( ClientData client_data,
|
|
_TCLCHK(interp)
|
|
|
|
if( oldpath == NULL)
|
|
- oldpath = !strcmp( argv[arg1], "MANPATH") ? "/usr/man" : "";
|
|
+ oldpath = !strcmp( argv[arg1], "MANPATH") ? MANPATH : "";
|
|
|
|
/**
|
|
** Split the new path into its components directories so each
|