]> git.proxmox.com Git - proxmox-backup.git/commitdiff
fix file timestamps in catalog
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 16 Jun 2020 09:25:31 +0000 (11:25 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 16 Jun 2020 09:25:31 +0000 (11:25 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/pxar/create.rs

index c16c8a7f40ee5cb850d3710be52b0c0018ba339c..4e0cfe53c00e9591e0bf5c5214083cb7be445512 100644 (file)
@@ -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 =