mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

This is because libmagic can return different results depending on installation. Note, this still doesn't fix all problems: smtp-entities sets md5 depending on the mime-type returned by libmagic ...
21 lines
280 B
Awk
Executable file
21 lines
280 B
Awk
Executable file
#! /usr/bin/awk -f
|
|
#
|
|
# A diff canonifier that removes all connection UIDs.
|
|
|
|
BEGIN { FS="\t"; OFS="\t"; }
|
|
|
|
column > 0 {
|
|
$column = "XXXXXXXXXXX";
|
|
}
|
|
|
|
/^#/ {
|
|
for ( i = 0; i < NF; ++i ) {
|
|
if ( $i == "uid" )
|
|
column = i - 1;
|
|
}
|
|
}
|
|
|
|
{ print }
|
|
|
|
|
|
|