From 6a520f508a6b480e79f4d4d50f61b18bba660021 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 27 Dec 2025 11:52:10 +0300 Subject: [PATCH] winws2: no EACCES check in windows --- nfq2/lua.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nfq2/lua.c b/nfq2/lua.c index d77e221..d8232ac 100644 --- a/nfq2/lua.c +++ b/nfq2/lua.c @@ -2830,10 +2830,14 @@ bool lua_test_init_script_files(void) { if (str->str[0]=='@' && !file_open_test(str->str+1, O_RDONLY)) { +#ifndef __CYGWIN__ int e = errno; +#endif DLOG_ERR("LUA file '%s' not accessible\n", str->str+1); +#ifndef __CYGWIN__ if (e==EACCES) - DLOG_ERR("I drop my privileges and do not run Lua as root\ncheck file permissions and +x rights on all directories in the path\n", str->str+1); + DLOG_ERR("I drop my privileges and do not run Lua as root\ncheck file permissions and +x rights on all directories in the path\n"); +#endif return false; } }