diff options
| author | mbalmer <mbalmer@NetBSD.org> | 2010-10-31 11:19:42 +0000 |
|---|---|---|
| committer | mbalmer <mbalmer@NetBSD.org> | 2010-10-31 11:19:42 +0000 |
| commit | ee59b191f4635d9b4c856e9e016a384f32b68de1 (patch) | |
| tree | 885e97124911865da6946b8ae0a418755142e300 /external/mit | |
| parent | 33fc08400cf1b6a70d431189f3fce4b54816ba21 (diff) | |
adjust the Lua configuration to our needs
Diffstat (limited to 'external/mit')
| -rw-r--r-- | external/mit/lua/dist/src/luaconf.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/external/mit/lua/dist/src/luaconf.h b/external/mit/lua/dist/src/luaconf.h index 67a0a8a84a4..e7e77fef5fa 100644 --- a/external/mit/lua/dist/src/luaconf.h +++ b/external/mit/lua/dist/src/luaconf.h @@ -1,4 +1,4 @@ -/* $NetBSD: luaconf.h,v 1.1.1.1 2010/10/31 11:16:54 mbalmer Exp $ */ +/* $NetBSD: luaconf.h,v 1.2 2010/10/31 11:19:42 mbalmer Exp $ */ /* ** Id: luaconf.h,v 1.82.1.7 2008/02/11 16:25:08 roberto Exp $ @@ -96,14 +96,21 @@ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll" #else -#define LUA_ROOT "/usr/local/" +#define LUA_ROOT "/usr/" #define LUA_LDIR LUA_ROOT "share/lua/5.1/" #define LUA_CDIR LUA_ROOT "lib/lua/5.1/" + +/* + * The original Lua distribution contain "./?.lua" at the beginning + * of LUA_PATH_DEFAULT and "./?.so" at the beginning of LUA_CPATH_DEFAULT. + * These path elements have been removed for the NetBSD version of Lua + * to avoid potential security problems. + */ #define LUA_PATH_DEFAULT \ - "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" + LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" #define LUA_CPATH_DEFAULT \ - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" + LUA_CDIR"?.so;" LUA_CDIR"loadall.so" #endif |
