luad

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

commit 05d083d5b5cae5ea191b710175786ca256d2ed9b
parent 7fdcc89ec178dd27d33629e301189d5d2d353e6f
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 18 May 2026 20:01:42 +0100

no need to call access() here

lua will report an error if the file is not found anyway

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

diff --git a/luad.c b/luad.c @@ -157,11 +157,6 @@ int main(int argc, char **argv) signal(SIGCHLD, handle_sigchld); if (argc >= 2) { - if (!access(argv[1], F_OK) == 0) { - fprintf(stderr, "File %s does not exist!\n", argv[1]); - exit(1); - } - status = luaL_dofile(L, argv[1]); if (status) { fprintf(stderr, "Error: %s\n", lua_tostring(L, -1));