Browse Source

Don't restore timestamps in system::unarchiveToDirectory().

tags/v2.0.0
Andrew Belt 2 years ago
parent
commit
ff085a7c91
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/system.cpp

+ 2
- 1
src/system.cpp View File

@@ -515,7 +515,8 @@ static void unarchiveToDirectory(const std::string& archivePath, const std::vect
// Open dir for writing // Open dir for writing
struct archive* disk = archive_write_disk_new(); struct archive* disk = archive_write_disk_new();
DEFER({archive_write_free(disk);}); DEFER({archive_write_free(disk);});
int flags = ARCHIVE_EXTRACT_TIME;
// Don't restore timestamps
int flags = 0;
archive_write_disk_set_options(disk, flags); archive_write_disk_set_options(disk, flags);
DEFER({archive_write_close(disk);}); DEFER({archive_write_close(disk);});




Loading…
Cancel
Save