tarfile.cc: Restore timestamps

This is needed to get the lastModified attribute of GitHub flakes.
This commit is contained in:
Eelco Dolstra 2019-12-19 15:09:54 +01:00
parent 2550c11373
commit c84c843e33
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -84,6 +84,7 @@ static void extract_archive(TarArchive & archive, const Path & destDir)
{
int flags = ARCHIVE_EXTRACT_FFLAGS
| ARCHIVE_EXTRACT_PERM
| ARCHIVE_EXTRACT_TIME
| ARCHIVE_EXTRACT_SECURE_SYMLINKS
| ARCHIVE_EXTRACT_SECURE_NODOTDOT;