From: Joerg Sonnenberger Date: Tue, 4 Sep 2018 13:34:13 +0000 (+0200) Subject: Set file type explicitly for all entries. X-Git-Tag: v3.4.0~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbdca0d81be6984d52519d4bdb46578a6a908dac;p=thirdparty%2Flibarchive.git Set file type explicitly for all entries. --- 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,