Skip to content

Commit

Permalink
Merge pull request #4590 from ln5/pathgen
Browse files Browse the repository at this point in the history
[Fix] Correct format pattern for RE tree tempfile name
  • Loading branch information
vstakhov committed Sep 8, 2023
2 parents 98fef97 + 58d8005 commit 391c782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libserver/re_cache.c
Expand Up @@ -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);

Expand Down

0 comments on commit 391c782

Please sign in to comment.