]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
unescape when extracting link 1643/head
authorChristian Hesse <mail@eworm.de>
Mon, 20 Dec 2021 09:36:50 +0000 (10:36 +0100)
committerChristian Hesse <mail@eworm.de>
Mon, 3 Jan 2022 10:02:02 +0000 (11:02 +0100)
The file name is escaped when archiving, so it needs to be unescaped
when extracting.

libarchive/archive_read_support_format_mtree.c

index 9c46cfaec3619031895577325bef35f471da9855..88bca76fb9151b7f88521435cfc1e7651b84e89c 100644 (file)
@@ -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);
                }