From ad6f580b6dd34dd3a94bc99086db778173476dc2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 3 Nov 2025 14:57:19 +1000 Subject: [PATCH] lua: add select to the list of allowed functions This function is safe (and was already documented) so let's make sure it's available. Part-of: --- src/libinput-plugin-lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libinput-plugin-lua.c b/src/libinput-plugin-lua.c index 6f4eb72a..86158a60 100644 --- a/src/libinput-plugin-lua.c +++ b/src/libinput-plugin-lua.c @@ -1221,8 +1221,8 @@ libinput_lua_plugin_init_lua(struct libinput *libinput, luaopen_base(L); static const char *allowed_funcs[] = { - "assert", "error", "ipairs", "next", "pcall", "pairs", - "print", "tonumber", "tostring", "type", "xpcall", + "assert", "error", "ipairs", "next", "pcall", "pairs", + "print", "select", "tonumber", "tostring", "type", "xpcall", }; ARRAY_FOR_EACH(allowed_funcs, func) { lua_getglobal(L, *func);