From 0e03b0a763b24a63b8f41aff5e28318e0ee8e57c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 26 May 2026 19:14:04 +0100 Subject: [PATCH] print error if garbage received from client --- luad.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luad.c b/luad.c index 0be0ac6..1a9f0b3 100644 --- a/luad.c +++ b/luad.c @@ -118,6 +118,9 @@ int start_lua_child(lua_State *L, lua_seti(L, -2, i++); word = word_end + 1; } + if(! pathname) { + die("no script name received from client"); + } lua_setglobal(L, "arg"); int status = luaL_dofile(L, pathname); if (status) {