Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
lua triggers: provide the rootfd to the script
Baptiste Daroussin committed 5 years ago
commit d10a68dc93e15e00bb9206da306deb9fe62723f2
parent aba9ce4
1 file changed +2 -0
modified libpkg/triggers.c
@@ -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;