]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
lua/fileinfo: match script and expected output 540/head
authorVictor Julien <victor@inliniac.net>
Fri, 17 Sep 2021 09:24:33 +0000 (11:24 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 17 Sep 2021 09:51:31 +0000 (11:51 +0200)
tests/lua-scfileinfo/expected/scfileinfo.log
tests/lua-scfileinfo/scfileinfo.lua

index e320a47db571082e82ad093d178e84299d281d96..637546b403e6ba58f260936f336d4f9dc54ebd71 100644 (file)
@@ -4,7 +4,6 @@ size: 1054 [**] magic: nomagic
 md5: c0b818de79d068db0a989ed35044cd62
 sha1: afb4fb1ad18223825cfb7ce5bf506e0f9dc47d5c
 sha256: 57b43ee07432cf8a8b8a17d9d712138194e4564e4b36963a34c495b576b404fe
-
 ** SCFileInfo is: [**] fileid: 2 [**] txid: 1
 name: /en-US/static/@95063/js/contrib/lowpro_for_jquery.js
 size: 4096 [**] magic: nomagic
index 09f83fa7fe61c4892d6d9945abe8cc9b3df07346..a8d84ca4843fca1dd59a2dc78d67f1bb20578f71 100644 (file)
@@ -19,7 +19,7 @@ function log(args)
         magic = "nomagic"
     end
 
-    file:write ("** SCFileInfo is: [**] fileid: " .. fileid .. " [**] txid: " .. txid .. "\nname: " .. name .. "\nsize: " .. size .. " [**] magic: " .. magic .. "\nmd5: " .. md5 .. " \nsha1: " .. sha1 .. "\nsha256: " .. sha256 .. "\n\n")
+    file:write ("** SCFileInfo is: [**] fileid: " .. fileid .. " [**] txid: " .. txid .. "\nname: " .. name .. "\nsize: " .. size .. " [**] magic: " .. magic .. "\nmd5: " .. md5 .. "\nsha1: " .. sha1 .. "\nsha256: " .. sha256 .. "\n")
     file:flush()
 end