From 2564b0834f82e22e33bfbd36e2f1adb4efc814bd Mon Sep 17 00:00:00 2001
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
Date: Tue, 16 Jun 2020 11:25:31 +0200
Subject: [PATCH] fix file timestamps in catalog

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
---
 src/pxar/create.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pxar/create.rs b/src/pxar/create.rs
index c16c8a7f..4e0cfe53 100644
--- a/src/pxar/create.rs
+++ b/src/pxar/create.rs
@@ -472,7 +472,7 @@ impl<'a, 'b> Archiver<'a, 'b> {
 
                 let file_size = stat.st_size as u64;
                 if let Some(ref mut catalog) = self.catalog {
-                    catalog.add_file(c_file_name, file_size, metadata.stat.mtime)?;
+                    catalog.add_file(c_file_name, file_size, stat.st_mtime as u64)?;
                 }
 
                 let offset: LinkOffset =