]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Prevent hs_helper from deleting multipattern cache files
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 6 Jan 2026 12:41:33 +0000 (12:41 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 6 Jan 2026 12:41:33 +0000 (12:41 +0000)
commit2fd97fa9ddbf6a98ea64aa08d145f349e933a98d
tree4a778dc89eff00a7d79409bc49c7ca0b1a59b806
parent831312b314e7d5db39826c0a653823f7aac70f00
[Fix] Prevent hs_helper from deleting multipattern cache files

Add rspamd_hyperscan_is_file_known() API to check if a file is in the
known hyperscan files cache. Modify hs_helper cleanup to skip files
that are known (e.g., multipattern TLD cache files) even if they
aren't part of the re_cache.
src/hs_helper.c
src/libserver/hyperscan_tools.cxx
src/libserver/hyperscan_tools.h