luad

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 0e03b0a763b24a63b8f41aff5e28318e0ee8e57c
parent 2fea793900d4a0fbfe3fb292bdfa759599341e81
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 26 May 2026 19:14:04 +0100

print error if garbage received from client

Diffstat:
Mluad.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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) {