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
** See Copyright Notice in lua.h
*/
@ -94,20 +94,20 @@
#define LUA_LDIR "!\\lua\\"
#define LUA_CDIR "!\\"
#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;" ".\\?.lua"
#define LUA_CPATH_DEFAULT \
".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll"
#else
#define LUA_ROOT "/usr/local/"
#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
#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;" "./?.lua"
#define LUA_CPATH_DEFAULT \
"./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
#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.
*/
*/
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)