Skip to content

Commit

Permalink
Merge branch 'develop' into adv-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 27, 2024
2 parents bc232a0 + 0ca0f4d commit 6686ca8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion depends/luacov
Submodule luacov updated 1 files
+1 −5 src/luacov/runner.lua
12 changes: 5 additions & 7 deletions library/LuaTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1898,13 +1898,11 @@ lua_State *DFHack::Lua::Open(color_ostream &out, lua_State *state)
luaL_setfuncs(state, dfhack_coro_funcs, 0);
lua_pop(state, 1);

// remove some io functions (if coverage monitoring, which needs them, is not enabled)
if (!getenv("DFHACK_ENABLE_LUACOV")) {
lua_getglobal(state, "io");
lua_pushnil(state);
lua_setfield(state, -2, "popen");
lua_pop(state, 1);
}
// DFHack should not be running external processes (security hardening measure)
lua_getglobal(state, "io");
lua_pushnil(state);
lua_setfield(state, -2, "popen");
lua_pop(state, 1);

// replace some os functions
lua_getglobal(state, "os");
Expand Down
2 changes: 1 addition & 1 deletion scripts
Submodule scripts updated 1 files
+42 −35 gui/launcher.lua

0 comments on commit 6686ca8

Please sign in to comment.