From ff085a7c91297c26ec62163905f0fbc63cb8ca9a Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 30 Nov 2021 05:37:22 -0500 Subject: [PATCH] Don't restore timestamps in system::unarchiveToDirectory(). --- src/system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system.cpp b/src/system.cpp index 1de68bdc..fd7b4978 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -515,7 +515,8 @@ static void unarchiveToDirectory(const std::string& archivePath, const std::vect // Open dir for writing struct archive* disk = archive_write_disk_new(); DEFER({archive_write_free(disk);}); - int flags = ARCHIVE_EXTRACT_TIME; + // Don't restore timestamps + int flags = 0; archive_write_disk_set_options(disk, flags); DEFER({archive_write_close(disk);});