src/pxar/encoder.rs: include .pxarexclude files into the catalog

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-10-16 18:06:05 +02:00 committed by Dietmar Maurer
parent 20feec9fac
commit 40c9ff9d81

View File

@ -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;
}