Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

winws2: no EACCES check in windows

This commit is contained in:
bol-van
2025-12-27 11:52:10 +03:00
parent 70d0dd5d79
commit 6a520f508a

View File

@@ -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;
}
}