The man pages of libarchive recommend using archive_entry_perm