Skip to content
Snippets Groups Projects
Commit eed5cdc2 authored by Luigi Scarso's avatar Luigi Scarso
Browse files

sync with experimental.

parent 81814c7e
No related branches found
No related tags found
No related merge requests found
......@@ -1069,6 +1069,10 @@ void lua_initialize(int ac, char **av)
fix_dumpname();
}
}
/* Maybe we can extend this way to the others tables, using luac. */
if ( safer_option || ((shellenabledp == 0) || (shellenabledp == 1 && restrictedshell == 1)) ) {
(void) luaL_dostring(Luas,"ffi=require[[ffi]]; for k,_ in pairs(ffi) do if k~='gc' then ffi[k]=nil end; end; ffi=nil;");
}
}
@ @c
......
......@@ -349,10 +349,6 @@ void luainterpreter(void)
(void) hide_lua_value(L, "lfs", "rmdir");
(void) hide_lua_value(L, "lfs", "mkdir");
}
/* Maybe we can extend this way to the others tables, using luac. */
if ( safer_option || ((shellenabledp == 0) || (shellenabledp == 1 && restrictedshell == 1)) ) {
(void) luaL_dostring(L,"ffi=require[[ffi]]; for k,_ in pairs(ffi) do if k~='gc' then ffi[k]=nil end ;end; ffi=nil;");
}
/* fprintf(stdout, "\nLuajitTeX default hash function type:%s\n", */
/* jithash_hashname); */
Luas = L;
......
......@@ -310,10 +310,6 @@ void luainterpreter(void)
(void) hide_lua_value(L, "lfs", "rmdir");
(void) hide_lua_value(L, "lfs", "mkdir");
}
/* Maybe we can extend this way to the others tables, using luac. */
if ( safer_option || ((shellenabledp == 0) || (shellenabledp == 1 && restrictedshell == 1)) ) {
(void) luaL_dostring(L,"ffi=require[[ffi]]; for k,_ in pairs(ffi) do if k~='gc' then ffi[k]=nil end; end; ffi=nil;");
}
Luas = L;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment