mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 15:47:25 +00:00
rename infile -> scap_filename
This commit is contained in:
parent
d0e489b5c2
commit
b4bc2d52be
@ -203,7 +203,7 @@ int digwatch_init(int argc, char **argv)
|
|||||||
int long_index = 0;
|
int long_index = 0;
|
||||||
string lua_main_filename;
|
string lua_main_filename;
|
||||||
string output_name = "stdout";
|
string output_name = "stdout";
|
||||||
string infile;
|
string scap_filename;
|
||||||
string conf_filename;
|
string conf_filename;
|
||||||
string lua_dir = DIGWATCH_LUA_DIR;
|
string lua_dir = DIGWATCH_LUA_DIR;
|
||||||
lua_State* ls = NULL;
|
lua_State* ls = NULL;
|
||||||
@ -244,7 +244,7 @@ int digwatch_init(int argc, char **argv)
|
|||||||
output_name = optarg;
|
output_name = optarg;
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
infile = optarg;
|
scap_filename = optarg;
|
||||||
break;
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
result = EXIT_FAILURE;
|
result = EXIT_FAILURE;
|
||||||
@ -375,9 +375,9 @@ int digwatch_init(int argc, char **argv)
|
|||||||
add_output(ls, *it);
|
add_output(ls, *it);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (infile.size())
|
if (scap_filename.size())
|
||||||
{
|
{
|
||||||
inspector->open(infile);
|
inspector->open(scap_filename);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user