From: Vsevolod Stakhov Date: Wed, 28 Feb 2024 15:20:58 +0000 (+0000) Subject: [Minor] Ask for utf8 string from libarchive X-Git-Tag: 3.9.0~120^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4843%2Fhead;p=thirdparty%2Frspamd.git [Minor] Ask for utf8 string from libarchive --- diff --git a/src/libmime/archives.c b/src/libmime/archives.c index 528c6f21b1..23966484e4 100644 --- a/src/libmime/archives.c +++ b/src/libmime/archives.c @@ -1683,7 +1683,7 @@ rspamd_7zip_read_next_section(struct rspamd_task *task, struct archive_entry *ae; while (archive_read_next_header(a, &ae) == ARCHIVE_OK) { - const char *name = archive_entry_pathname(ae); + const char *name = archive_entry_pathname_utf8(ae); if (name) { msg_debug_archive("7zip: found file %s", name); struct rspamd_archive_file *f = g_malloc0(sizeof(*f));