From 40c9ff9d814b8fda1ad8810e67b8c54e1c54cb7e Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Wed, 16 Oct 2019 18:06:05 +0200 Subject: [PATCH] src/pxar/encoder.rs: include .pxarexclude files into the catalog Signed-off-by: Christian Ebner --- src/pxar/encoder.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pxar/encoder.rs b/src/pxar/encoder.rs index bb337436..8abde25d 100644 --- a/src/pxar/encoder.rs +++ b/src/pxar/encoder.rs @@ -781,6 +781,9 @@ impl<'a, W: Write, C: BackupCatalogWriter> Encoder<'a, W, C> { }; self.write_filename(&filename)?; + if let Some(ref mut catalog) = self.catalog { + catalog.add_file(&filename, stat.st_size as u64, stat.st_mtime as u64)?; + } self.encode_pxar_exclude(filefd, stat, child_magic, content)?; continue; }