From dbdca0d81be6984d52519d4bdb46578a6a908dac Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 4 Sep 2018 15:34:13 +0200 Subject: [PATCH] Set file type explicitly for all entries. --- libarchive/archive_read_support_format_ar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libarchive/archive_read_support_format_ar.c b/libarchive/archive_read_support_format_ar.c index b6b9fc3c6..1b0205cc7 100644 --- a/libarchive/archive_read_support_format_ar.c +++ b/libarchive/archive_read_support_format_ar.c @@ -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, -- 2.47.2