]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Set file type explicitly for all entries.
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 4 Sep 2018 13:34:13 +0000 (15:34 +0200)
committerGrzegorz Antoniak <ga@anadoxin.org>
Sat, 8 Sep 2018 05:22:39 +0000 (07:22 +0200)
libarchive/archive_read_support_format_ar.c

index b6b9fc3c6dcd12941ecce982065262f8bee660b0..1b0205cc70580bbd6439a8ab42cefb97f6e6b033 100644 (file)
@@ -459,6 +459,7 @@ ar_parse_common_header(struct ar *ar, struct archive_entry *entry,
        uint64_t n;
 
        /* Copy remaining header */
+       archive_entry_set_filetype(entry, AE_IFREG);
        archive_entry_set_mtime(entry,
            (time_t)ar_atol10(h + AR_date_offset, AR_date_size), 0L);
        archive_entry_set_uid(entry,