Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
lua triggers: provide the rootfd to the script
Baptiste Daroussin committed 5 years ago
commit d10a68dc93e15e00bb9206da306deb9fe62723f2
parent aba9ce4c1985b0db77aba4182c10df73d2a096e3
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;