]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Ask for utf8 string from libarchive 4843/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 28 Feb 2024 15:20:58 +0000 (15:20 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 28 Feb 2024 15:20:58 +0000 (15:20 +0000)
src/libmime/archives.c

index 528c6f21b1fd2eb8a3fe180cceba534e1f73a7ca..23966484e42c74d86c61fc15ba685deb507c4b2f 100644 (file)
@@ -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));