mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
FileAnalysis: fix file type canonification for file_analysis.log
This commit is contained in:
parent
393d35dc60
commit
e73a261262
1 changed files with 2 additions and 2 deletions
|
@ -8,9 +8,9 @@ BEGIN { FS="\t"; OFS="\t"; type_col = -1; desc_col = -1 }
|
|||
/^#fields/ {
|
||||
for ( i = 2; i < NF; ++i )
|
||||
{
|
||||
if ( $i == "mime_type" || $i == "file_type" )
|
||||
if ( $i == "mime_type" )
|
||||
type_col = i-1;
|
||||
if ( $i == "mime_desc" )
|
||||
if ( $i == "mime_desc" || $i == "file_type" )
|
||||
desc_col = i-1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue