aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2023-09-08 11:19:09 +0200
committerLinus Nordberg <linus@nordberg.se>2023-09-08 11:19:09 +0200
commit58d8005dacb4dd9e0e4086b8265b66cc79fd3e9f (patch)
tree4fc2864e9a4e055eb2740d2b93913d981b5f23b3 /src/libserver/re_cache.c
parentf4a6e61ef789c6e472a89ffa2a7ead7141ae8593 (diff)
downloadrspamd-58d8005dacb4dd9e0e4086b8265b66cc79fd3e9f.tar.gz
rspamd-58d8005dacb4dd9e0e4086b8265b66cc79fd3e9f.zip
[Fix] Correct format pattern for RE tree tempfile name
Triggered by -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DENABLE_CLANG_PLUGIN=ON -DENABLE_HYPERSCAN=ON.
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r--src/libserver/re_cache.c2
1 files changed, 1 insertions, 1 deletions
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);