tweak an entry in the audit log
This commit is contained in:
parent
f5a1c22dc5
commit
8f8a0e5a18
|
@ -176,7 +176,7 @@ static int io_lines (lua_State *L) {
|
|||
FILE **pf = newfile(L);
|
||||
static char buffer[1024] = {0};
|
||||
memset(buffer, '\0', 1024);
|
||||
snprintf(buffer, 1020, "io.lines(\"%s\", \"r\")", filename);
|
||||
snprintf(buffer, 1020, "io.lines(\"%s\")", filename);
|
||||
append_to_audit_log(L, buffer);
|
||||
if (file_operation_permitted(caller(L), filename, "r"))
|
||||
*pf = fopen(filename, "r");
|
||||
|
|
Loading…
Reference in New Issue