diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-19 15:09:54 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-19 15:09:54 +0100 |
commit | c84c843e3360459cf2c993919fb9f89474a46f38 (patch) | |
tree | d7525627ddbc871bde67c3a9af6d6a0d1ac8e223 /src/libutil/tarfile.cc | |
parent | 2550c11373e83f4c6085049dc9efe53f8389b035 (diff) |
tarfile.cc: Restore timestamps
This is needed to get the lastModified attribute of GitHub flakes.
Diffstat (limited to 'src/libutil/tarfile.cc')
-rw-r--r-- | src/libutil/tarfile.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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; |