From d093bb5e0a8d0c1d82f609d4680528f5e508ca08 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 28 Feb 2024 15:20:58 +0000 Subject: [PATCH] [Minor] Ask for utf8 string from libarchive --- src/libmime/archives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmime/archives.c b/src/libmime/archives.c index 528c6f21b..23966484e 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)); -- 2.39.5