]> git.ipfire.org Git - thirdparty/suricata-update.git/commit
filehashes: fix for unique filehash filenames
authorJason Ish <jason.ish@oisf.net>
Tue, 12 Mar 2024 19:02:26 +0000 (13:02 -0600)
committerJason Ish <jason.ish@oisf.net>
Wed, 13 Mar 2024 22:52:14 +0000 (16:52 -0600)
commit344802255773ea952cdbecf71b51d93573be2e4e
tree8641e432725c74a392977bfc285f7191eb719d31
parent8722adeea6dd56b0b58d3cdc7c7c8a7b2c2920ca
filehashes: fix for unique filehash filenames

Commit 8725e565a78caffae79584c6ec48670ca71d6618 gave each downloaded a
file a unique name so dataset files from different sources wouldn't
clobber each other, but this was applied to all files breaking file
hash lists as that code wasn't updated for the new filename scheme.

Update the file hashing code to find the files based on the filename
prefix of the rule referencing the file.

Bug: #6854
CHANGELOG.md
suricata/update/main.py