mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/master' into topic/johanna/gh-859
This commit is contained in:
commit
509b501e1b
18 changed files with 76 additions and 74 deletions
|
@ -24,8 +24,9 @@ function get_file_handle(c: connection, is_orig: bool): string
|
|||
local path_name = current_file?$path ? current_file$path : "";
|
||||
local file_name = current_file?$name ? current_file$name : "";
|
||||
# Include last_mod time if available because if a file has been modified it
|
||||
# should be considered a new file.
|
||||
local last_mod = cat(current_file?$times ? current_file$times$modified : double_to_time(0.0));
|
||||
# should be considered a new file. We use the raw version here to avoid
|
||||
# getting differences when double precision varies by architecture.
|
||||
local last_mod = cat(current_file?$times ? current_file$times$modified_raw : 0);
|
||||
# TODO: This is doing hexdump to avoid problems due to file analysis handling
|
||||
# using CheckString which is not immune to encapsulated null bytes.
|
||||
# This needs to be fixed lower in the file analysis code later.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue