Commit d10a68dc authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

lua triggers: provide the rootfd to the script

This enables the triggers to run scripts using most of the pkg.*
parent aba9ce4c
......@@ -409,6 +409,8 @@ trigger_execute_lua(const char *script, bool sandbox, kh_strings_t *args)
luaL_newlib(L, pkg_lib);
lua_setglobal(L, "pkg");
lua_pushinteger(L, ctx.rootfd);
lua_setglobal(L, "rootfd");
char *dir;
char **arguments = NULL;
int i = 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment