From: Christian Hesse Date: Mon, 20 Dec 2021 09:36:50 +0000 (+0100) Subject: unescape when extracting link X-Git-Tag: v3.6.0~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1643%2Fhead;p=thirdparty%2Flibarchive.git unescape when extracting link The file name is escaped when archiving, so it needs to be unescaped when extracting. --- diff --git a/libarchive/archive_read_support_format_mtree.c b/libarchive/archive_read_support_format_mtree.c index 9c46cfaec..88bca76fb 100644 --- a/libarchive/archive_read_support_format_mtree.c +++ b/libarchive/archive_read_support_format_mtree.c @@ -1675,6 +1675,7 @@ parse_keyword(struct archive_read *a, struct mtree *mtree, break; case 'l': if (strcmp(key, "link") == 0) { + parse_escapes(val, NULL); archive_entry_copy_symlink(entry, val); return (ARCHIVE_OK); }