mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-21 08:45:48 +00:00
nfqws2: permissions info if EACCES on lua files
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#elif defined(__CYGWIN__)
|
||||
#include <processthreadsapi.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
#include "lua.h"
|
||||
#include "params.h"
|
||||
@@ -2829,7 +2830,10 @@ bool lua_test_init_script_files(void)
|
||||
{
|
||||
if (str->str[0]=='@' && !file_open_test(str->str+1, O_RDONLY))
|
||||
{
|
||||
DLOG_ERR("LUA file '%s' not accessible\n",str->str+1);
|
||||
int e = errno;
|
||||
DLOG_ERR("LUA file '%s' not accessible\n", str->str+1);
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user