environment-modules/environment-modules-3.2.7-manpath.patch

24 lines
866 B
Diff
Raw Normal View History

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