From c84c843e3360459cf2c993919fb9f89474a46f38 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 19 Dec 2019 15:09:54 +0100 Subject: [PATCH] tarfile.cc: Restore timestamps This is needed to get the lastModified attribute of GitHub flakes. --- src/libutil/tarfile.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libutil/tarfile.cc b/src/libutil/tarfile.cc index ca19f402e..c4d8a4f91 100644 --- a/src/libutil/tarfile.cc +++ b/src/libutil/tarfile.cc @@ -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;