commit 58d8005: [Fix] Correct format pattern for RE tree tempfile name
Linus Nordberg
linus at nordberg.se
Fri Sep 8 11:28:03 UTC 2023
Author: Linus Nordberg
Date: 2023-09-08 11:19:09 +0200
URL: https://github.com/rspamd/rspamd/commit/58d8005dacb4dd9e0e4086b8265b66cc79fd3e9f (refs/pull/4590/head)
[Fix] Correct format pattern for RE tree tempfile name
Triggered by -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DENABLE_CLANG_PLUGIN=ON -DENABLE_HYPERSCAN=ON.
---
src/libserver/re_cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index 6dd06711b..62ef26c73 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -1952,7 +1952,7 @@ rspamd_re_cache_compile_timer_cb(EV_P_ ev_timer *w, int revents)
return;
}
- rspamd_snprintf(path, sizeof(path), "%s%c%P-XXXXXXXXXX", cbdata->cache_dir,
+ rspamd_snprintf(path, sizeof(path), "%s%c%s%P-XXXXXXXXXX", cbdata->cache_dir,
G_DIR_SEPARATOR, re_class->hash, our_pid);
fd = g_mkstemp_full(path, O_CREAT | O_TRUNC | O_EXCL | O_WRONLY, 00600);
More information about the Commits
mailing list