1
0
mirror of https://github.com/lua/lua.git synced 2025-01-28 06:03:00 +08:00

default paths have dot option as the last one (to improve security)

This commit is contained in:
Roberto Ierusalimschy 2009-06-18 15:19:36 -03:00
parent f4eed60ca9
commit bc3e02a1b7

View File

@ -1,5 +1,5 @@
/* /*
** $Id: luaconf.h,v 1.103 2009/02/20 13:50:27 roberto Exp roberto $ ** $Id: luaconf.h,v 1.104 2009/03/26 12:57:01 roberto Exp roberto $
** Configuration file for Lua ** Configuration file for Lua
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -94,20 +94,20 @@
#define LUA_LDIR "!\\lua\\" #define LUA_LDIR "!\\lua\\"
#define LUA_CDIR "!\\" #define LUA_CDIR "!\\"
#define LUA_PATH_DEFAULT \ #define LUA_PATH_DEFAULT \
".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \ LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua" LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" ".\\?.lua"
#define LUA_CPATH_DEFAULT \ #define LUA_CPATH_DEFAULT \
".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll"
#else #else
#define LUA_ROOT "/usr/local/" #define LUA_ROOT "/usr/local/"
#define LUA_LDIR LUA_ROOT "share/lua/5.1/" #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/" #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
#define LUA_PATH_DEFAULT \ #define LUA_PATH_DEFAULT \
"./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" "./?.lua"
#define LUA_CPATH_DEFAULT \ #define LUA_CPATH_DEFAULT \
"./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
#endif #endif
@ -221,9 +221,9 @@
/* /*
@@ luai_writestring defines how 'print' prints its results. @@ luai_writestring defines how 'print' prints its results.
** CHANGE it if your system does not have a useful stdout. ** CHANGE it if your system does not have a useful stdout.
*/ */
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) #define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)