Fixed inspectFile operator does not pass FILES_TMPNAMES

pass FILES_TMPNAMES variable to lua engine Fixed Lua engine
should also be aware of the variable and pass it to the target
lua script main function
This commit is contained in:
root
2019-11-09 06:36:34 +03:00
committed by Felipe Zimmerle
parent 05e9e7cf31
commit 6624a18a4e
4 changed files with 16 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ bool InspectFile::init(const std::string &param2, std::string *error) {
bool InspectFile::evaluate(Transaction *transaction, const std::string &str) {
if (m_isScript) {
return m_lua.run(transaction);
return m_lua.run(transaction, str);
} else {
FILE *in;
char buff[512];