]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Correct format pattern for RE tree tempfile name 4590/head
authorLinus Nordberg <linus@nordberg.se>
Fri, 8 Sep 2023 09:19:09 +0000 (11:19 +0200)
committerLinus Nordberg <linus@nordberg.se>
Fri, 8 Sep 2023 09:19:09 +0000 (11:19 +0200)
Triggered by -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DENABLE_CLANG_PLUGIN=ON -DENABLE_HYPERSCAN=ON.

src/libserver/re_cache.c

index 6dd06711b0c60a0b0768b22e53f4414ea7d1840a..62ef26c73672c3fc28a622676539dda70f6bcacb 100644 (file)
@@ -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);