diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-03-17 06:44:29 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-03-17 06:44:29 +0100 |
commit | 4bd31f0da05570e94b4d17c4de8f5cfe75fa65ca (patch) | |
tree | 0d8010c432defe6f7c81cb0981e670c6d3ae57cf /el7/environment-modules-3.2.10-ignore-nested-dirs.patch |
environment-modules: import from RHEL
Diffstat (limited to 'el7/environment-modules-3.2.10-ignore-nested-dirs.patch')
-rw-r--r-- | el7/environment-modules-3.2.10-ignore-nested-dirs.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/el7/environment-modules-3.2.10-ignore-nested-dirs.patch b/el7/environment-modules-3.2.10-ignore-nested-dirs.patch new file mode 100644 index 0000000..b53e71b --- /dev/null +++ b/el7/environment-modules-3.2.10-ignore-nested-dirs.patch @@ -0,0 +1,15 @@ +diff -up modules-3.2.9/locate_module.c.SourceVers modules-3.2.9/locate_module.c +--- modules-3.2.9/locate_module.c.SourceVers 2013-06-30 17:23:01.451210176 +0200 ++++ modules-3.2.9/locate_module.c 2013-06-30 17:24:16.963201645 +0200 +@@ -1194,6 +1194,11 @@ int SourceVers( Tcl_Interp *interp, char + ** The version has been specified in the + ** '.version' file. Set up the result code + **/ ++ /* version can be only located in the current directory */ ++ if (strrchr(version, '/')) { ++ ErrorLogger( ERR_BADMODNAM, LOC, version, NULL); ++ return( TCL_ERROR); ++ } + /* for deep modulefile dirs ... just use lowest part */ + if (!(modname = (char*) strrchr( name, '/'))) { + modname = name; |