mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Given the -C flag, set script-layer ignore_checksums to true.
This commit is contained in:
parent
1a1feec887
commit
ce4494d8d3
1 changed files with 11 additions and 3 deletions
|
@ -1010,6 +1010,17 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
exit(0);
|
||||
}
|
||||
|
||||
if ( options.ignore_checksums )
|
||||
{
|
||||
const auto& id = global_scope()->Find("ignore_checksums");
|
||||
|
||||
if ( ! id )
|
||||
reporter->InternalError("global ignore_checksums not defined");
|
||||
|
||||
id->SetVal(zeek::val_mgr->True());
|
||||
ignore_checksums = 1;
|
||||
}
|
||||
|
||||
// Print the ID.
|
||||
if ( options.identifier_to_print )
|
||||
{
|
||||
|
@ -1082,9 +1093,6 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
g_frame_stack.pop_back();
|
||||
}
|
||||
|
||||
if ( options.ignore_checksums )
|
||||
ignore_checksums = 1;
|
||||
|
||||
if ( zeek_script_loaded )
|
||||
{
|
||||
// Queue events reporting loaded scripts.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue