mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-03 07:34:53 +00:00
Remove unneeded -m <lua_main_filename> param
This commit is contained in:
@@ -190,7 +190,7 @@ int digwatch_init(int argc, char **argv)
|
|||||||
// Parse the args
|
// Parse the args
|
||||||
//
|
//
|
||||||
while((op = getopt_long(argc, argv,
|
while((op = getopt_long(argc, argv,
|
||||||
"hm:No:",
|
"hNo:",
|
||||||
long_options, &long_index)) != -1)
|
long_options, &long_index)) != -1)
|
||||||
{
|
{
|
||||||
switch(op)
|
switch(op)
|
||||||
@@ -198,9 +198,6 @@ int digwatch_init(int argc, char **argv)
|
|||||||
case 'h':
|
case 'h':
|
||||||
usage();
|
usage();
|
||||||
goto exit;
|
goto exit;
|
||||||
case 'm':
|
|
||||||
lua_main_filename = optarg;
|
|
||||||
break;
|
|
||||||
case 'N':
|
case 'N':
|
||||||
inspector->set_hostname_and_port_resolution_mode(false);
|
inspector->set_hostname_and_port_resolution_mode(false);
|
||||||
break;
|
break;
|
||||||
@@ -272,11 +269,7 @@ int digwatch_init(int argc, char **argv)
|
|||||||
lua_dir = string(env_lua_dir);
|
lua_dir = string(env_lua_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
trim(lua_main_filename);
|
lua_main_filename = lua_dir + DIGWATCH_LUA_MAIN;
|
||||||
if(lua_main_filename.size() == 0)
|
|
||||||
{
|
|
||||||
lua_main_filename = lua_dir + DIGWATCH_LUA_MAIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize Lua interpreter
|
// Initialize Lua interpreter
|
||||||
ls = lua_open();
|
ls = lua_open();
|
||||||
|
Reference in New Issue
Block a user